YouTube2Text

Attaque par brute force : comment ça marche? OWASP A07:2021 & 10 bonnes pratiques — Transcript

by Techno · 1,452 words · 220 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Hello, I hope you're doing well.
  2. 0:02Following requests from subscribers, in
  3. 0:04this video, I will show you how a brute
  4. 0:06force attack works, and at the end of
  5. 0:08the video, I will give you 10 best
  6. 0:10practices to protect against this
  7. 0:11attack. This video is also linked to
  8. 0:14the one on the 10 most critical web
  9. 0:15vulnerabilities according to OWASP.
  10. 0:18Among these 10 vulnerabilities, the 7th
  11. 0:20concerns broken authentication. So,
  12. 0:23this type of system can be the target
  13. 0:25of a brute force attack, which I will
  14. 0:27present to you here. By the way, I will
  15. 0:29put the link to the video on web
  16. 0:31vulnerabilities in the description. A
  17. 0:48brute force attack consists of testing
  18. 0:51a set of predefined values on a system.
  19. 0:54The goal is usually to find an access
  20. 0:56key, a username, or a password in order
  21. 0:58to access a system. To give you an
  22. 1:01example, in real life, it's like being
  23. 1:03in front of a door with a ring of 100
  24. 1:05keys, but you don't know which one
  25. 1:06works. You will, therefore, try all the
  26. 1:09keys one by one. Brute force is
  27. 1:11generally used at the beginning of a
  28. 1:13penetration test or pen test. There are
  29. 1:19several techniques for a brute force
  30. 1:21attack. I will mention a few of them
  31. 1:23here. But know that this list is not
  32. 1:26exhaustive. The one that is generally
  33. 1:28used is the dictionary attack. It
  34. 1:30consists of trying words from a
  35. 1:32dictionary to find the right username
  36. 1:34or password. The dictionary here, in
  37. 1:36fact, is a file that contains a list of
  38. 1:39words. There are sites that provide
  39. 1:41these lists. Another technique consists
  40. 1:43of using a known password, for example
  41. 1:45"password," and then trying several
  42. 1:47usernames. This technique is also
  43. 1:50called a reverse brute force attack.
  44. 1:52Sometimes a predefined list of
  45. 1:54usernames and passwords is used on
  46. 1:56multiple sites. In fact, the attacker
  47. 1:59assumes that some users set the same
  48. 2:01password on multiple sites. This
  49. 2:04technique is also called credential
  50. 2:06stuffing. An application generally
  51. 2:08stores the hash or fingerprint
  52. 2:09associated with a password. This hash
  53. 2:12is actually the text obtained after
  54. 2:14using a hashing algorithm like SHA-256.
  55. 2:18The rainbow table is actually a list of
  56. 2:19predefined hashes that an attacker will
  57. 2:21use to attempt multiple authentications
  58. 2:23on an application. Before moving on to
  59. 2:26the practical part, if this is your
  60. 2:27first time here and you like this
  61. 2:29content, subscribe. I have been working
  62. 2:32in cybersecurity for a few years and I
  63. 2:33share tips on this field and on
  64. 2:35technologies in general here. There you
  65. 2:37go. And I also publish one to two
  66. 2:39videos per week. Several tools allow
  67. 3:01for carrying out this type of attack.
  68. 3:02In this video, I will use the Burp
  69. 3:05Suite tool and perform some
  70. 3:06authentication requests on a DVWA test
  71. 3:09server installed on a virtual machine.
  72. 3:12So, you should know that DVWA is a
  73. 3:14server that contains some vulnerable
  74. 3:16applications and allows you to run some
  75. 3:19tests if you want, for example, to
  76. 3:21train in penetration testing. And Burp
  77. 3:23Suite is a proxy, so it can intercept
  78. 3:27and modify web requests, HTTP requests.
  79. 3:30And an important point, too, is that
  80. 3:32both Burp Suite and DVWA are free. So
  81. 3:35you can download them from the internet
  82. 3:37. So here I am on the DVWA server. On
  83. 3:40the left menu, you have a list of tests
  84. 3:42that you can perform. I start by
  85. 3:44setting the security level on DVWA. I
  86. 3:48then configure my web browser to use
  87. 3:51the Burp Suite proxy. So now I am going
  88. 4:05to Burp Suite. You can see in the
  89. 4:07option menu the IP address the proxy is
  90. 4:09listening on. It is this address that I
  91. 4:12configured previously in my browser.
  92. 4:14Then in the intercept menu, I will
  93. 4:16enable traffic interception by Burp
  94. 4:19Suite. I go back to DVWA, I click on
  95. 4:22Brute Force. Then, I enter the
  96. 4:25credentials. You can see that Burp has
  97. 4:29intercepted the traffic. This is where
  98. 4:31it gets interesting. You can see the
  99. 4:34parameters sent to the DVWA server, for
  100. 4:37example the cookie, security level,
  101. 4:40password, username, etc. I will send
  102. 4:42these parameters to a tool called
  103. 4:45Intruder. By default, all variables are
  104. 4:48replaced by a dollar sign followed by a
  105. 4:50name. For now, I click on clear to use
  106. 4:53my own variables. The Cluster Bomb
  107. 4:56option allows you to define several
  108. 4:59variables in the request to DVWA. So
  109. 5:02here, in this case, I will use two
  110. 5:04variables, which are the username and
  111. 5:06the password. Then I go into this menu
  112. 5:09to assign values to these variables.
  113. 5:12The first variable will take its values
  114. 5:14one by one. You can see that in count,
  115. 5:17we have entered 10 values. So as I was
  116. 5:20telling you before, there are lists of
  117. 5:22usernames and password lists on the
  118. 5:24internet. But in my example, I took a
  119. 5:27small list just to show you how it
  120. 5:29works. The second variable will take
  121. 5:32its values one by one. You can see that
  122. 5:34in payload count, we have entered 9
  123. 5:36values. So in total, Burp Suite will
  124. 5:40perform 9 x 10, which is 90 requests to
  125. 5:42DVWA. I'll show you the parameters one
  126. 5:46last time, then I click on this button
  127. 5:48to start the authentication tests. You
  128. 5:55can see that Burp Suite is launching
  129. 5:57the authentication tests against DVWA.
  130. 6:02A few minutes later, there you go, the
  131. 6:03tests are finished. You need to sort by
  132. 6:05length. You'll notice one row is
  133. 6:08different from the others in this
  134. 6:10column. In the request and response
  135. 6:12tabs, you can see what was sent to the
  136. 6:14server and the response received. You
  137. 6:17can also view the webpage at the moment
  138. 6:19the server responded. You can see that
  139. 6:22the authentication worked with the
  140. 6:24username admin and the password
  141. 6:25password. And if you browse through the
  142. 6:28other rows, you can see that
  143. 6:30authentication did not work. I hope
  144. 6:32this explanation was clear for you. Let
  145. 6:35me know in the comments if you have any
  146. 6:36questions. At the end of my tests, I
  147. 6:39disabled my proxy configuration.
  148. 6:49Generally, depending on the technique
  149. 6:51used and password complexity, a
  150. 6:52brute-force attack can take several
  151. 6:54days. To give you an idea, this site
  152. 6:57allows you to get an estimate of the
  153. 6:59time needed to crack a password. You
  154. 7:02can see that with a weak
  155. 7:04seven-character, non-complex password,
  156. 7:07a 2007 processor would take about 7
  157. 7:09minutes to find it. To protect yourself
  158. 7:18against a brute-force attack, you can
  159. 7:19follow these recommendations. So the
  160. 7:22first one is password length. I would
  161. 7:24say you need a minimum of 12 to 15
  162. 7:26characters. The second best practice is
  163. 7:29password complexity. So generally, you
  164. 7:32need at least one lowercase, one
  165. 7:34uppercase, one number, and one special
  166. 7:36character. The third best practice is
  167. 7:40to set a maximum number of attempts.
  168. 7:43Once this threshold is exceeded, you
  169. 7:45should, for example, lock the account
  170. 7:47for a certain time, like 10 to 15
  171. 7:49minutes. Or you can also block the user
  172. 7:52entirely, and they have to call the IT
  173. 7:54department to unlock their account. The
  174. 7:57fourth best practice is using a CAPTCHA
  175. 7:59to verify that a computer isn't
  176. 8:01launching the requests. The fifth
  177. 8:03recommendation is to use multi-factor
  178. 8:05authentication, also called MFA. For
  179. 8:09instance, you could imagine a scenario
  180. 8:12where after authenticating, you have to
  181. 8:14enter a code from an app like Google
  182. 8:16Authenticator. Sixth point, you should
  183. 8:19also monitor logs; this is very
  184. 8:21important, monitor the logs of the
  185. 8:23server receiving authentication
  186. 8:25requests. If, for example, the server
  187. 8:28receives 10 unsuccessful authentication
  188. 8:31attempts in one second, there is
  189. 8:33definitely a problem. Seventh point,
  190. 8:36you must change default credentials.
  191. 8:38There are many cases of intrusion where
  192. 8:41the hacker simply used the default
  193. 8:43password. So for example, when you
  194. 8:46install a device by default, it has a
  195. 8:47password that is public since it is
  196. 8:49provided by the manufacturer. 8th point
  197. 8:52, it's the use of robust encryption and
  198. 8:54hashing algorithms for storing
  199. 8:56passwords. Generally, it is the hash of
  200. 8:59a password that is stored. It is the
  201. 9:01hash of a password that is stored,
  202. 9:03sorry, and not the cleartext password.
  203. 9:04So to generate this hash, you must use,
  204. 9:07for example, SHA-256, SHA-3, or SHA-512
  205. 9:10. 9th point, use a password manager,
  206. 9:13for example KeePass, which allows you
  207. 9:16to generate and store complex passwords
  208. 9:19. You only need to remember one single
  209. 9:21password that will allow access to the
  210. 9:23manager. Last point, it's salting,
  211. 9:27which allows adding random characters
  212. 9:29to cleartext before generating the
  213. 9:31fingerprint or hash. That's all for
  214. 9:34this introduction to brute force
  215. 9:37attacks. If you liked this video, I
  216. 9:39recommend this presentation on the 10
  217. 9:41most critical web vulnerabilities. You
  218. 9:44will have more information on the nine
  219. 9:45other web vulnerabilities that I did
  220. 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.