Unlike any other web application attack which targets vulnerabilities in web applications, brute force attack targets Authentication algorithm of web application. It tries to guess weak or common Passwords like Ã¢â‚¬Å“pass@123Ã¢â‚¬Â and Username like Ã¢â‚¬Å“adminÃ¢â‚¬Â
Here we will brute force Word Press Admin Login Page by using Burp suite. Before we start letÃ¢â‚¬â„¢s get introduced with Burp Suite.
Burp Suite is an integrated platform for performing security testing of web applications. Its various tools work seamlessly together to support the entire testing process, from initial mapping and analysis of an application’s attack surface, through to finding and exploiting security vulnerabilities.
Now Setup your burp suite with Firefox or any other browser you are using. Enter any password into password field. Most of the time user name would be admin, so keep it same.
Once you hit enter, you get the intercepted session into the Burp Suite. Right Click on it and click Ã¢â‚¬Å“Send to IntruderÃ¢â‚¬Â
Now, Go to Intruder Tab and click on Positions. Here we will set the values for our target parameter which is PWD for password. Select the highlighted values and click clear. Except Ã¢â‚¬Å“PWDÃ¢â‚¬Â parameter, this is containing Password. Instead of clearing just remove the Password value. Now Screen will look like given below.
Now Go to Ã¢â‚¬Å“PayloadsÃ¢â‚¬Â Tab and Paste your Password List in Ã¢â‚¬Å“Payload Options [Simple List]Ã¢â‚¬Â.
Now Click on Intruder and start the Attack.
It will start brut forcing each password from the list against admin user and if the correct Password is in your wordlist, you will get it once the attack finished.
Here we got 302 HTTP redirect for successful Login with password Ã¢â‚¬Å“#$%^&p&3aÃ¢â‚¬Â. Check the screen below
How to prevent Brute Force Attack:
1) Do not use common usernames.
As most of the web admin uses common user names like Ã¢â‚¬Å“adminÃ¢â‚¬Â, attackers always target these users first. So it is recommended to not to use common user names.
2)Do not use common/easy passwords.
Users must set Hard and complex passwords always. As we demonstrated it is very easy to guess and brute force the common passwords with wordlist. Web admin should set the policy to enforce the users to set complex passwords which includes alpha-numeric and extra characters.
3)Uses of CAPTCHA
A completely automated public Turing test to tell computers and humans apart, or CAPTCHA, is a program that allows you to distinguish between humans and computers. First widely used by Alta Vista to prevent automated search submissions, CAPTCHAs are particularly effective in stopping any kind of automated abuse, including brute-force attacks.