Skip to content
IDOR Write-up Intermediate

How a BOLA Vulnerability Escalated Into Full Account Takeover

A user management API allowed a low-privileged user to change another user's email address by modifying the user ID in the request, without verifying ownership or role. Combined with open registration and an email change flow that did not require verification from the original address, an attacker could take over a privileged account by triggering a password reset to the newly set email.

5ummer Follow

Published on 5ummer.medium.com

A vulnerability that looks small in isolation can become critical when it is combined with other weaknesses.

Rafly Ramadhan, on 5ummer.medium.com

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 backend trusted the user ID supplied by the client and did not enforce object-level authorization, allowing any authenticated user to modify other accounts; additionally, email changes were not verified with the original address.

Impact

A successful takeover could expose capabilities such as viewing customer or partner information, accessing personally identifiable information, managing rewards, vouchers, or financial value assets, changing operational settings, impersonating privileged staff, disrupting partner operations, and using trusted administrative access for further compromise.

What the attacker needed

Open registration enabled; Low-privileged account; Knowledge of victim user ID; No victim interaction

The fix

The application should enforce object-level authorization on every request, derive the user ID from the session for self-service updates, use field-level authorization, secure email-change workflows with verification and notification, restrict registration, apply least privilege to user listings…

How it was found

  1. Create a low privileged account.
  2. Obtain the identifier of a privileged user.
  3. Submit a profile update request for that user.
  4. Replace the privileged user’s email address.
  5. Use the standard “Forgot Password” flow.
  6. Receive the password reset link at the newly assigned address.

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.

The system let any logged-in user edit other people's profiles just by changing a number in the request. Because email addresses could be changed without confirmation, an attacker could set a victim's email to their own, then use the 'forgot password' feature to get a reset link and take over the account. This is like being able to change someone else's address on a form and then receiving their mail.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.