[dubsmash] Username and password bruteforce
The login and password reset pages lacked rate limiting, and the password policy allowed weak passwords. An attacker could brute-force usernames via the reset password page and then brute-force passwords on the login page to take over accounts.
- Triaged in 16 hours
- Fixed in 57 days
- Paid in 13 days
- Disclosed after 8 months
Summary:
Due to less complexity of password and no rate limiting attacker can bruteforce user name and password and takeover the victim account
Login Page- No rate limits Password length is minimum five character with no variations. Plain password are easy to bruteforce Reset Password page- No rate limits
Attacker can send as many request with no restrictions
Impact:
Account takeover
Steps To Reproduce:
- To get the username attacker bruteforce through reset password page with selecting email parameter
- It shows 200 status for every request but
for valid user it respond with {status :true}
{"data":{"resetPassword":{"status":true,"__typename":"ResetPasswordOutput"}}}
For invalid user
{"data":{"resetPassword":{"status":false,"__typename":"ResetPasswordOutput"}}}
3.Login with victim email and any password. 4.Intercept request with burp and send to intruder with selecting password parameter 6.Load the desired password list and start attack 7.It shows status 200 for every request but for valid password it gives jwt token in response
Supporting Material/References:
f_user.jpg: Username is invalid r_user.jpg: Right username is found. r_pass.jpg: Valid password is found.
- [attachment / reference]
Impact
Account take over even if the user password is long but not complex.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not enforce rate limiting on authentication endpoints and allowed weak passwords, enabling automated guessing.
Impact
An attacker could take over user accounts, even if the password is long but not complex.
What the attacker needed
No rate limiting on login and reset pages; Weak password policy (minimum 5 characters)
The fix
Rate limiting on login and reset endpoints and stronger password complexity would address the issue.
How it was found
- Brute-force usernames through the reset password page by selecting the email parameter.
- Observe that valid usernames return a true status while invalid ones return false.
- Log in with the victim's email and any password.
- Intercept the login request and send it to an intruder tool, selecting the password parameter.
- Load a password list and start the attack.
- Observe that a valid password returns a JWT token in the response.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Brute-forcing means trying many username and password combinations automatically until one works. Here, the website did not limit how many attempts someone could make, and it allowed very short, simple passwords, so an attacker could guess their way into someone else's account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.