Skip to content
IDOR Disclosed report Beginner

IDOR when editing email leads to Account Takeover on Atavist

The account settings endpoint accepted a user ID parameter that was not checked against the logged-in user, so an attacker could change any user's email address. Because user IDs were sequential, an attacker could change every account's email and then reset the victim's password to take over the account.

bugra Follow

Originally disclosed on HackerOne

Critical View original
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 3 months

Summary:

Hi team, I created an account on Atavist and checked my settings page. I can change my email at https://magazine.atavist.com/cms/reader/account with this request :

request.PNG
request.PNG From the original on HackerOne

And as you can see, there is a id parameter on request data. It's our user ID, and it's vulnerable for IDOR. So we can change any user's email address.

Also user IDs are sequential so an attacker can change all accounts' email.

Steps To Reproduce:

1.Go to https://magazine.atavist.com/login and Login to your account

  1. Go to https://magazine.atavist.com/cms/reader/account and open your proxy program
  2. Change the email and click Save
  3. In request, change the ID to your test account's ID
  4. Forward the request
  5. Now you can reset victim's password via https://magazine.atavist.com/forgot

Impact

Account Takeover without user interaction

Thanks, Bugra

The original report as published on HackerOne, by bugra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the server used the user-supplied id parameter to decide which account to update instead of using the authenticated session's own user ID.

Impact

An attacker could take over any account without user interaction by changing the email and then resetting the password.

What the attacker needed

A free account; victim's user ID (sequential)

How it was found

  1. Log in to the Atavist site.
  2. Open the account settings page with a proxy tool running.
  3. Change the email field and click Save.
  4. In the captured request, replace the id value with the test account's ID.
  5. Forward the request.
  6. Reset the victim's password via the forgot password page.

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 save your email on a website, the site usually sends a hidden number that identifies your account. Here the site trusted whatever number the browser sent, so a logged-in user could put someone else's number and change that person's email. Once the email is changed, the attacker can use the 'forgot password' page to receive the reset link and take over the 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.

More by bugra

View all

21 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

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.