Home Broken Authentication -> Forgot Password - Bad Questions
Post
Cancel

Broken Authentication -> Forgot Password - Bad Questions

Broken Authentication -> Forgot Password - Bad Questions

A security question is form of shared secret used as an authenticator. It is used as an extra security layer.

Exploitation

bcf

This webapp has password recovery with bad security questions inwhich the answers can easily be predicted by attacker.

We will test the webapp with username webgoat to understand its working flow.

bcf

As you can see, it was asking for favorite color which is bad question as it can be predicted. Since we have been given red as the favorite color of webgoat user, we will use it here.

bcf

bcf

Now we have understood the working flow of the password recovery, we are going to reset password of admin user.

Let’s enter admin as the username.

bcf

bcf

Here, We don’t know the favorite color of admin user but since the security question is easy to guess, we can try different color until we get the right one.

Let’s test for red

bcf

red was incorrect. Let’s try for green

bcf

bcf

Great!, we have predicted the answer.

References

This post is licensed under CC BY 4.0 by the author.