Email change or personal data change on the account.
The email change flow on indiehackers.com was vulnerable to an insecure direct object reference (IDOR), allowing an attacker to change the email associated with a user account to one they owned. This could lead to account takeover in certain situations.
- Triaged in 10 days
- Fixed in 14 days
- Paid in 14 days
- Disclosed after 7 months
Summary by the program
@dk82hg found the email change flow on indiehackers.com was vulnerable to an insecure direct object reference (IDOR) which allowed an attacker to change the email associated with a user account to one they owned and ultimately take over a victim’s account in certain situations. A fix was shipped to confirm authentication on account actions.
Note: This bug was accepted and received before our minimum bounty amounts were increased on August 25, 2021.
What the report shows
The target was the email change flow on indiehackers.com, part of the *.indiehackers.com scope on the Stripe program. The researcher, dk82hg, found that this flow was vulnerable to an insecure direct object reference (IDOR). By abusing it, an attacker could change the email address associated with a user account to one they controlled, and in certain situations take over the victim's account entirely.
The report itself is short and is presented as a summary by the program. It does not include the individual requests, parameters or responses that were used, so there is no payload to reproduce here. What it does state is the sequence of events at a high level:
- The researcher examined the email change flow on indiehackers.com.
- The email change flow was vulnerable to an insecure direct object reference (IDOR).
- The attacker could point the change at a victim's account and set the email to an address they owned.
- With the email under their control, the attacker could, in certain situations, take over the victim's account.
The program accepted the bug and paid a bounty of 3,000 USD. The severity is recorded as critical, with the weakness classified as Insecure Direct Object Reference (IDOR). The report was disclosed on 21 January 2022. The program notes that the bug was accepted and the bounty received before its minimum bounty amounts were increased on 25 August 2021.
The fix shipped was to confirm authentication on account actions. The report says a fix was shipped to confirm authentication on account actions.
Root cause
The report points to a missing authorisation check on an object reference in the email change flow. The report does not describe the request or the parameter involved. Because the reference was trusted as given, changing it let one user's request operate on another user's record. The report does not name the parameter or show the request, so the exact form of the reference is not stated.
Impact
The impact described is account takeover. An attacker who can set the email address on a victim's account to one they own can then use the normal account recovery and login flows that depend on email to gain access. The report hedges this: takeover was possible "in certain situations", which suggests the outcome depended on conditions the summary does not spell out, such as whether the victim had other protections in place or how the account was used. The report describes the impact as account takeover in certain situations.
How this kind of bug works
An IDOR arises when an application exposes a direct reference to an internal object, such as a database key, a filename or an account identifier, and uses that reference to perform an action without checking that the caller is allowed to touch that object. Authentication answers "who are you"; authorisation answers "are you allowed to do this to this object". IDOR is the second check going missing.
The classic pattern is a request that carries both an identity (usually a session cookie or token) and an object identifier. The server resolves the object from the identifier and performs the action, but never compares the object's owner with the identity in the session. If the identifier is guessable, sequential or simply visible in the request, an attacker can substitute another user's value and act on their behalf.
Defences are straightforward in principle: every object access must be authorised against the current principal on the server side, ideally by deriving the object from the session rather than trusting a client-supplied identifier. Where identifiers must be supplied, they should be checked against an ownership or permission record before any state change. Using unguessable identifiers reduces the ease of discovery but is not a substitute for the authorisation check.
How to test for it
A general method for hunting this class:
- Map the account-modifying features: email change, password change, profile updates, linked payment methods, MFA settings, invitations and anything else that writes to a user record.
- Capture the requests in a proxy and identify every parameter that looks like an object reference: numeric IDs, UUIDs, account or organisation identifiers, email addresses used as keys, and hidden form fields.
- Create two accounts you control, A and B, and record the identifiers each one uses.
- Replay A's request while substituting B's identifier, keeping A's session cookie. Watch whether the server applies the change to B.
- Also try removing the identifier entirely, sending it in a different location (body versus query versus header), and sending duplicate values, since some frameworks resolve these inconsistently.
- Confirm the effect out of band: log in as B, or check B's email inbox, to see whether the change actually landed on B's account.
A positive result is a state change on the other account that the attacker's session should not have been able to cause. Common false positives include endpoints that return a success message but silently ignore the request, changes that only affect the attacker's own record because the server derives the object from the session, and cases where a second factor or confirmation email blocks the change from completing. Always verify the effect rather than trusting the response body.
How it is fixed
The standard fix is a server-side authorisation check on every account action: resolve the target object, confirm that the authenticated principal owns or may act on it, and only then perform the change. Deriving the object from the session instead of a client-supplied identifier removes the reference entirely. For sensitive flows such as email change, requiring re-authentication (confirming the current password or a second factor) and sending a confirmation link to the new address before the change takes effect adds defence in depth. The report describes the fix as confirming authentication on account actions.
Hunting notes
This class tends to hide in features added later or bolted onto an existing account model: settings pages, admin panels, invitation and sharing flows, export and delete actions, and anything that accepts an identifier from the client. Recon signals worth watching are endpoints that take an ID alongside a session, GraphQL mutations that accept an object ID, and mobile or API clients that send identifiers the web UI hides. To get a report accepted, demonstrate a concrete state change on a second account you control, show the request and the resulting effect, and describe the realistic impact, here the path from email change to account takeover. Keep the proof minimal and reproducible, and avoid touching real users' data.
What happened, in plain words
Indie Hackers is a website where founders share what they are building. Like most sites, it lets you change the email address on your account. That email address matters more than it looks: it is usually how a site identifies you, sends you password resets and confirms who you are.
A researcher called dk82hg looked at that email change flow on indiehackers.com, which was in scope on the Stripe bug bounty program. They found that the flow was vulnerable to an insecure direct object reference, or IDOR. The email change flow was vulnerable to an insecure direct object reference (IDOR).
That meant an attacker could point the change at someone else's account and set the email to an address they owned. Once the email on a victim's account belongs to the attacker, the attacker can use the normal login and account recovery flows, which depend on email, to get in. In certain situations, that added up to full account takeover.
The program accepted the bug, paid a bounty of 3,000 USD and recorded it as critical, classified as an IDOR. The report was disclosed on 21 January 2022. The program also noted that the bug was accepted and the bounty received before its minimum bounty amounts were increased on 25 August 2021.
The fix was to confirm authentication on account actions.
The public report is a short summary written by the program. It does not include the individual requests, parameters or responses, so there is no payload to reproduce here. What it does give is the sequence at a high level:
- The researcher examined the email change flow on indiehackers.com.
- The flow accepted a reference to the account being modified without properly confirming that the requester was authorised to act on that account. That missing check is the IDOR.
- The attacker could point the change at a victim's account and set the email to an address they owned.
- With the email under their control, the attacker could, in certain situations, take over the victim's account.
Why each step matters
Step 1 matters because email change is a sensitive feature: it is the door to account recovery. Step 2 is the actual flaw: the flow was vulnerable to an IDOR. Step 3 is the abuse: swap the reference for someone else's and the action lands on their record. Step 4 is the impact: control of the email means control of the recovery path, and therefore potentially the account.
In general, how this kind of bug works
An IDOR happens when an application exposes a direct reference to an internal object, such as a database key, a filename or an account identifier, and uses that reference to perform an action without checking that the caller is allowed to touch that object.
The two words to keep apart are authentication and authorisation. Authentication answers "who are you". Authorisation answers "are you allowed to do this to this object". An IDOR is the second check going missing. A useful everyday comparison: a hotel receptionist who checks your ID at the door (authentication) but hands you the keys to any room you name (missing authorisation).
The classic pattern is a request carrying both an identity, usually a session cookie or token, and an object identifier. The server looks up the object from the identifier and performs the action, but never compares the object's owner with the identity in the session. If the identifier is guessable, sequential or simply visible in the request, an attacker can substitute another user's value and act on their behalf.
Defences are simple in principle. Every object access must be authorised against the current user on the server side, ideally by deriving the object from the session rather than trusting an identifier supplied by the client. Where identifiers must be supplied, they should be checked against an ownership or permission record before any state change. Unguessable identifiers make discovery harder but are not a substitute for the authorisation check.
How to test for it
A general method for hunting this class:
- Map the account-modifying features: email change, password change, profile updates, linked payment methods, MFA settings, invitations and anything else that writes to a user record.
- Capture the requests in a proxy and identify every parameter that looks like an object reference: numeric IDs, UUIDs, account or organisation identifiers, email addresses used as keys, and hidden form fields.
- Create two accounts you control, A and B, and record the identifiers each one uses.
- Replay A's request while substituting B's identifier, keeping A's session cookie. Watch whether the server applies the change to B.
- Also try removing the identifier entirely, sending it in a different location (body versus query versus header), and sending duplicate values, since some frameworks resolve these inconsistently.
- Confirm the effect out of band: log in as B, or check B's email inbox, to see whether the change actually landed on B's account.
A positive result is a state change on the other account that the attacker's session should not have been able to cause. Common false positives include endpoints that return a success message but silently ignore the request, changes that only affect the attacker's own record because the server derives the object from the session, and cases where a second factor or confirmation email blocks the change from completing. Always verify the effect rather than trusting the response body.
How it is fixed
The standard fix is a server-side authorisation check on every account action: resolve the target object, confirm that the logged-in user owns or may act on it, and only then perform the change. Deriving the object from the session instead of a client-supplied identifier removes the reference entirely. For sensitive flows such as email change, requiring re-authentication (confirming the current password or a second factor) and sending a confirmation link to the new address before the change takes effect adds defence in depth. The report describes the fix as confirming authentication on account actions.
Hunting notes
This class tends to hide in features added later or bolted onto an existing account model: settings pages, admin panels, invitation and sharing flows, export and delete actions, and anything that accepts an identifier from the client. Recon signals worth watching are endpoints that take an ID alongside a session, GraphQL mutations that accept an object ID, and mobile or API clients that send identifiers the web UI hides. To get a report accepted, demonstrate a concrete state change on a second account you control, show the request and the resulting effect, and describe the realistic impact, here the path from email change to account takeover. Keep the proof minimal and reproducible, and avoid touching real users' data.
Glossary
- IDOR (Insecure Direct Object Reference): a flaw where the server acts on an object named in the request without checking that the requester is allowed to act on it.
- Authentication: proving who you are, for example by logging in.
- Authorisation: deciding whether an identified user is allowed to perform a given action on a given object.
- Account takeover: an attacker gaining control of another person's account.
- Session cookie: a small piece of data the browser stores and sends with each request so the server can recognise your logged-in session.
- Token: a value used as proof of identity or permission, often sent with requests.
- Request: the message a browser sends to a server asking it to do something, such as change an email address.
- Response: the message the server sends back, such as a success or error page.
- Endpoint: a specific address on a server that performs a particular action.
- Parameter: a named value sent with a request, such as an account ID.
- Payload: the part of a request carrying the data the attacker sends.
- Object reference: a value that points to a specific record on the server, such as an account ID.
- UUID: a long, hard-to-guess identifier.
- Proxy: a tool that sits between your browser and the server so you can inspect and modify requests.
- MFA (multi-factor authentication): logging in with more than one proof, such as a password plus a code.
- Re-authentication: asking the user to prove their identity again before a sensitive action.
- Defence in depth: layering several protections so one failure does not open the door.
- False positive: a result that looks like a bug but is not.
- Out of band: confirming an effect through a separate channel, such as logging in as the other account.
- GraphQL mutation: a GraphQL operation that changes data on the server.
- Bug bounty: a program that pays researchers for reporting security flaws.
- Bounty: the reward paid for an accepted report.
- Severity: a rating of how serious a bug is, here critical.
- Scope: the set of systems a bounty program allows you to test.
- Disclosure: making a report public.