Finding 0 Days In Enterprise Application
A password reset endpoint accepted any email address supplied by the user instead of checking it against the registered corporate address for the given employee ID. An attacker who knew an employee's ID and email could reset that account's password and receive a new one, allowing takeover of many accounts.
Dhanesh Dodia - HeyDanny Follow
Published on infosecwriteups.com
Before we start with the technical part of the vulnerability i.e. covered below, I want you to brief about the application which was the target.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the reset flow trusted the user-supplied email address without verifying it matched the address stored for the supplied employee ID.
Impact
An attacker could reset the passwords of many employee accounts and take them over; the reporter says 500+ accounts were reset during testing, and the affected company took the portal down.
What the attacker needed
Valid employee ID; attacker-controlled email address; reachable reset endpoint
How it was found
- Find a pre-authentication endpoint that resets an employee's password using an employee ID and an email address.
- Obtain valid employee IDs and email addresses from a post-authentication endpoint that exposed them.
- Submit a valid employee ID together with an email address the attacker controls.
- Receive a new password for that account and use it to log in.
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 write-up has not been written yet. The Original tab links to the source.
When you forget a password, a site often emails you a reset link or a new password. That message should only ever go to the address the site already has on file for you. Here the site trusted whatever address the person typed in, so anyone who knew a worker's ID and email could have the new password sent to themselves and log in as that worker.
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.