Reporting user's profile by using another people's ID
The report claims that a Twitter safety reporting endpoint accepts arbitrary user IDs in its URL, allowing a user to report another person's profile by supplying their ID. The attacker could file reports against any account by changing the ID parameter.
Originally disclosed on HackerOne
- Triaged in 31 hours
- Fixed in 11 days
- Paid in 4 days
- Disclosed after 4 months
Hello , I'm Hussein .. Here is the video of the POC : https://www.youtube.com/watch?v=1UQmGRfDoYE The link I used in the video : https://twitter.com/safety/report_story?source=reportprofile&reported_user_id=[ID TO REPORT]&reporter_user_id=[REPORTER's ID]
Please fix this fastly :)) Thanks, Good day :)
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 reporting endpoint trusts a user-supplied ID parameter to choose the reported account instead of deriving it from the authenticated session or a server-side check.
What the attacker needed
A reporter user ID; a target user ID
The fix
The endpoint should be fixed so the reported user ID cannot simply be chosen by the reporter.
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.
A link can contain parameters after a question mark. This report says one parameter chooses which profile is reported and can be changed to another user's ID.
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.