Skip to content
Account takeover Write-up Beginner

I Changed My Email and Got Internal Access + Pre-ATO

The platform allowed users to change their account email without any verification step. By setting the email to an internal company address, the attacker gained access to internal groups and sensitive files, and could also block the legitimate owner of an email from registering.

medium.com

Published on medium.com

قال تعالى: {وَقُلِ اعْ� َلُوا فَسَيَرَى اللَّهُ عَ� َلَكُ� ْ وَرَسُولُهُ وَالْ� ُؤْ� ِنُونَ ۖ وَسَتُرَدُّونَ إِلَىٰ عَالِ� ِ الْغَيْبِ وَالشَّهَادَةِ فَيُنَبِّئُكُ� بِ� َا كُنتُ� ْ تَعْ� َلُونَ} [التوبة — 105].

Youss1f, on 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

Likely the application trusted the user-supplied email address for authorisation decisions and did not require verification before applying an email change.

Impact

An attacker could gain access to internal groups, sensitive files with read, edit, upload and download permissions, and employee directories, and could prevent the legitimate owner of an email from registering (pre-account takeover).

What the attacker needed

A free account on the platform; ability to send a profile update request

The fix

The email change should require verification of the new address before it is applied, and authorisation should not rely on the email address alone.

How it was found

  1. Observe that the profile update request includes an email field even when only the display name is changed.
  2. Modify the email field to an address already registered; the server returns a 400 error.
  3. Change the email to a random unregistered address; the server returns 200 OK.
  4. Change the email to an internal company address and refresh the page.
  5. Observe that the account is now in internal groups with access to sensitive files and employee directories.
  6. Attempt to register a new account with the victim's email and see that it is rejected as already in use.

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 sign up, the site usually checks that the email address really belongs to you by sending a confirmation link. Here, the site let the user change the email to any address without that check. Because the site trusted the email address to decide what you can see, typing an internal company email gave the attacker access to private groups and files.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.