User guessing/enumeration at sw.khanacademy.org
The password reset form at sw.khanacademy.org reveals whether an email address is registered by showing an error for unknown addresses and a success message for known ones. An attacker could use this to enumerate valid accounts and gather information about a victim.
Originally disclosed on HackerOne
- Disclosed after 8 days
Hi there,
I've discovered a possibility to check whether a specific email address is associated with an account at sw.khanacademy.org. An attacker could use this issue to gather some information about his victim.
###Details
- Host: sw.khanacademy.org
- URL: https://sw.khanacademy.org/forgotpw
- Affected parameter: email
###Steps to reproduce
- Open the url
https://sw.khanacademy.org/forgotpw - Enter the email address you'd like to check. (e.g. [email protected])
- Submit the form
- The application will report an error that the email address wasn't found.
If the email address existed in the database, there would not be an error, but a success message that a reset link was sent or something.
###PoC:
POST /forgotpw HTTP/1.1
Host: sw.khanacademy.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://sw.khanacademy.org/forgotpw
Cookie: [COOKIES]
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 41
email=test%40test.de&reset=Reset+password
###How to fix? The application should always return a message like "If the email was found in the database, you'll receive a reset token soon." This leaves no information about the association between the application and the email/user.
Best regards, Sebastian Neef
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
The password reset endpoint returns different responses depending on whether the submitted email exists in the database.
Impact
An attacker could determine which email addresses have accounts, gathering information about a victim.
What the attacker needed
None
The fix
The application should always return a generic message regardless of whether the email exists, such as stating that a reset link will be sent if the address is registered.
How it was found
- Open the password reset page.
- Enter the email address to check.
- Submit the form.
- Observe the error message indicating the email was not found.
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.
When you forget your password, a website often asks for your email. This site tells you if the email is not registered by showing an error, but if it is registered it says a reset link was sent. That difference lets someone check many email addresses to see who has an account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.