Attaque par brute force : comment ça marche? OWASP A07:2021 & 10 bonnes pratiques — Transcript
Full transcript
- 0:00Hello, I hope you're doing well.
- 0:02Following requests from subscribers, in
- 0:04this video, I will show you how a brute
- 0:06force attack works, and at the end of
- 0:08the video, I will give you 10 best
- 0:10practices to protect against this
- 0:11attack. This video is also linked to
- 0:14the one on the 10 most critical web
- 0:15vulnerabilities according to OWASP.
- 0:18Among these 10 vulnerabilities, the 7th
- 0:20concerns broken authentication. So,
- 0:23this type of system can be the target
- 0:25of a brute force attack, which I will
- 0:27present to you here. By the way, I will
- 0:29put the link to the video on web
- 0:31vulnerabilities in the description. A
- 0:48brute force attack consists of testing
- 0:51a set of predefined values on a system.
- 0:54The goal is usually to find an access
- 0:56key, a username, or a password in order
- 0:58to access a system. To give you an
- 1:01example, in real life, it's like being
- 1:03in front of a door with a ring of 100
- 1:05keys, but you don't know which one
- 1:06works. You will, therefore, try all the
- 1:09keys one by one. Brute force is
- 1:11generally used at the beginning of a
- 1:13penetration test or pen test. There are
- 1:19several techniques for a brute force
- 1:21attack. I will mention a few of them
- 1:23here. But know that this list is not
- 1:26exhaustive. The one that is generally
- 1:28used is the dictionary attack. It
- 1:30consists of trying words from a
- 1:32dictionary to find the right username
- 1:34or password. The dictionary here, in
- 1:36fact, is a file that contains a list of
- 1:39words. There are sites that provide
- 1:41these lists. Another technique consists
- 1:43of using a known password, for example
- 1:45"password," and then trying several
- 1:47usernames. This technique is also
- 1:50called a reverse brute force attack.
- 1:52Sometimes a predefined list of
- 1:54usernames and passwords is used on
- 1:56multiple sites. In fact, the attacker
- 1:59assumes that some users set the same
- 2:01password on multiple sites. This
- 2:04technique is also called credential
- 2:06stuffing. An application generally
- 2:08stores the hash or fingerprint
- 2:09associated with a password. This hash
- 2:12is actually the text obtained after
- 2:14using a hashing algorithm like SHA-256.
- 2:18The rainbow table is actually a list of
- 2:19predefined hashes that an attacker will
- 2:21use to attempt multiple authentications
- 2:23on an application. Before moving on to
- 2:26the practical part, if this is your
- 2:27first time here and you like this
- 2:29content, subscribe. I have been working
- 2:32in cybersecurity for a few years and I
- 2:33share tips on this field and on
- 2:35technologies in general here. There you
- 2:37go. And I also publish one to two
- 2:39videos per week. Several tools allow
- 3:01for carrying out this type of attack.
- 3:02In this video, I will use the Burp
- 3:05Suite tool and perform some
- 3:06authentication requests on a DVWA test
- 3:09server installed on a virtual machine.
- 3:12So, you should know that DVWA is a
- 3:14server that contains some vulnerable
- 3:16applications and allows you to run some
- 3:19tests if you want, for example, to
- 3:21train in penetration testing. And Burp
- 3:23Suite is a proxy, so it can intercept
- 3:27and modify web requests, HTTP requests.
- 3:30And an important point, too, is that
- 3:32both Burp Suite and DVWA are free. So
- 3:35you can download them from the internet
- 3:37. So here I am on the DVWA server. On
- 3:40the left menu, you have a list of tests
- 3:42that you can perform. I start by
- 3:44setting the security level on DVWA. I
- 3:48then configure my web browser to use
- 3:51the Burp Suite proxy. So now I am going
- 4:05to Burp Suite. You can see in the
- 4:07option menu the IP address the proxy is
- 4:09listening on. It is this address that I
- 4:12configured previously in my browser.
- 4:14Then in the intercept menu, I will
- 4:16enable traffic interception by Burp
- 4:19Suite. I go back to DVWA, I click on
- 4:22Brute Force. Then, I enter the
- 4:25credentials. You can see that Burp has
- 4:29intercepted the traffic. This is where
- 4:31it gets interesting. You can see the
- 4:34parameters sent to the DVWA server, for
- 4:37example the cookie, security level,
- 4:40password, username, etc. I will send
- 4:42these parameters to a tool called
- 4:45Intruder. By default, all variables are
- 4:48replaced by a dollar sign followed by a
- 4:50name. For now, I click on clear to use
- 4:53my own variables. The Cluster Bomb
- 4:56option allows you to define several
- 4:59variables in the request to DVWA. So
- 5:02here, in this case, I will use two
- 5:04variables, which are the username and
- 5:06the password. Then I go into this menu
- 5:09to assign values to these variables.
- 5:12The first variable will take its values
- 5:14one by one. You can see that in count,
- 5:17we have entered 10 values. So as I was
- 5:20telling you before, there are lists of
- 5:22usernames and password lists on the
- 5:24internet. But in my example, I took a
- 5:27small list just to show you how it
- 5:29works. The second variable will take
- 5:32its values one by one. You can see that
- 5:34in payload count, we have entered 9
- 5:36values. So in total, Burp Suite will
- 5:40perform 9 x 10, which is 90 requests to
- 5:42DVWA. I'll show you the parameters one
- 5:46last time, then I click on this button
- 5:48to start the authentication tests. You
- 5:55can see that Burp Suite is launching
- 5:57the authentication tests against DVWA.
- 6:02A few minutes later, there you go, the
- 6:03tests are finished. You need to sort by
- 6:05length. You'll notice one row is
- 6:08different from the others in this
- 6:10column. In the request and response
- 6:12tabs, you can see what was sent to the
- 6:14server and the response received. You
- 6:17can also view the webpage at the moment
- 6:19the server responded. You can see that
- 6:22the authentication worked with the
- 6:24username admin and the password
- 6:25password. And if you browse through the
- 6:28other rows, you can see that
- 6:30authentication did not work. I hope
- 6:32this explanation was clear for you. Let
- 6:35me know in the comments if you have any
- 6:36questions. At the end of my tests, I
- 6:39disabled my proxy configuration.
- 6:49Generally, depending on the technique
- 6:51used and password complexity, a
- 6:52brute-force attack can take several
- 6:54days. To give you an idea, this site
- 6:57allows you to get an estimate of the
- 6:59time needed to crack a password. You
- 7:02can see that with a weak
- 7:04seven-character, non-complex password,
- 7:07a 2007 processor would take about 7
- 7:09minutes to find it. To protect yourself
- 7:18against a brute-force attack, you can
- 7:19follow these recommendations. So the
- 7:22first one is password length. I would
- 7:24say you need a minimum of 12 to 15
- 7:26characters. The second best practice is
- 7:29password complexity. So generally, you
- 7:32need at least one lowercase, one
- 7:34uppercase, one number, and one special
- 7:36character. The third best practice is
- 7:40to set a maximum number of attempts.
- 7:43Once this threshold is exceeded, you
- 7:45should, for example, lock the account
- 7:47for a certain time, like 10 to 15
- 7:49minutes. Or you can also block the user
- 7:52entirely, and they have to call the IT
- 7:54department to unlock their account. The
- 7:57fourth best practice is using a CAPTCHA
- 7:59to verify that a computer isn't
- 8:01launching the requests. The fifth
- 8:03recommendation is to use multi-factor
- 8:05authentication, also called MFA. For
- 8:09instance, you could imagine a scenario
- 8:12where after authenticating, you have to
- 8:14enter a code from an app like Google
- 8:16Authenticator. Sixth point, you should
- 8:19also monitor logs; this is very
- 8:21important, monitor the logs of the
- 8:23server receiving authentication
- 8:25requests. If, for example, the server
- 8:28receives 10 unsuccessful authentication
- 8:31attempts in one second, there is
- 8:33definitely a problem. Seventh point,
- 8:36you must change default credentials.
- 8:38There are many cases of intrusion where
- 8:41the hacker simply used the default
- 8:43password. So for example, when you
- 8:46install a device by default, it has a
- 8:47password that is public since it is
- 8:49provided by the manufacturer. 8th point
- 8:52, it's the use of robust encryption and
- 8:54hashing algorithms for storing
- 8:56passwords. Generally, it is the hash of
- 8:59a password that is stored. It is the
- 9:01hash of a password that is stored,
- 9:03sorry, and not the cleartext password.
- 9:04So to generate this hash, you must use,
- 9:07for example, SHA-256, SHA-3, or SHA-512
- 9:10. 9th point, use a password manager,
- 9:13for example KeePass, which allows you
- 9:16to generate and store complex passwords
- 9:19. You only need to remember one single
- 9:21password that will allow access to the
- 9:23manager. Last point, it's salting,
- 9:27which allows adding random characters
- 9:29to cleartext before generating the
- 9:31fingerprint or hash. That's all for
- 9:34this introduction to brute force
- 9:37attacks. If you liked this video, I
- 9:39recommend this presentation on the 10
- 9:41most critical web vulnerabilities. You
- 9:44will have more information on the nine
- 9:45other web vulnerabilities that I did
- 9:47not present here. See you soon.
About this transcript
This page contains the full transcript of Attaque par brute force : comment ça marche? OWASP A07:2021 & 10 bonnes pratiques by Techno, generated from the public captions YouTube serves with the video. The transcript has 1,452 words across 220 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.