After successfully identifying valid users, password-based authentication relies on the password as a sole measure for authenticating the user. Since users tend to select an easy-to-remember password, attackers may be able to guess or brute-force it.
The success of a brute-force attack entirely depends on the number of attempts an attacker can perform and the amount of time the attack takes. So, a good wordlist is crucial to have.
Upon providing an incorrect username, the login response contains the message (substring) “Invalid username”, therefore, we can use this information to build our ffuf
command to brute-force the user’s password: