Account Takeover Across Multiple Programs via Featurebase Integration
An IDOR in Featurebase's user identify endpoint let an attacker change another user's email by supplying their userId, then reset the password to take over the account. A second path via the user modification endpoint exposed access tokens, allowing settings changes and account takeover.
infosecwriteups.com
Published on infosecwriteups.com
In this blog, I am going to share an account takeover vulnerability in a third-party provider widely used by many bug bounty programs.
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
The application trusted client-controlled identity attributes without validating whether the supplied userId actually belonged to the authenticated user.
Impact
An attacker could take over accounts by changing the victim's email and resetting the password, or by obtaining an access token to modify settings; the vulnerability is not fully fixed as Featurebase says it is the website owner's responsibility, but a JWT-based secure installation option is available.
What the attacker needed
A free account on the target's feedback site; knowledge of victim's userId; victim uses Featurebase
The fix
Featurebase should validate that the userId belongs to the authenticated user; alternatively, website owners can use the JWT-based secure installation option.
How it was found
- Register an account on any target feedback.example.com
- Send a POST request to /api/v1/user/identify with a modified userId belonging to the victim
- Observe the victim's email changed in the response
- Request a password reset for the victim's email and take over the account
- Alternatively, change the name from the settings page or send a POST to /api/v1/user during account modification to obtain the user's access token
- Use the access token to send a PATCH to /api/v1/user and modify settings, achieving account takeover
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.
This is about a feedback tool that many websites embed. The tool had a flaw where it trusted a user ID sent by the browser without checking it belonged to the logged-in person. So an attacker could pretend to be someone else, change their email, and then reset the password to get into their account.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.