[Studio.twitter.com] See someone else pics
The media library endpoint on studio.twitter.com lacked authorisation checks, allowing an authenticated user to view, upload, and delete media belonging to other accounts by changing the owner_id parameter. An attacker could also tweet from the victim's account.
Originally disclosed on HackerOne
- Triaged in 17 hours
- Fixed in 2 days
- Paid in 2 days
- Disclosed after 10 months
Summary by the researcher
Insecure direct object reference on studio.twitter.com.
Impact:
- Can tweet from someone else's account by simply using owner_id (user id of twitter) which is publicly available.
- Can delete media from victim's account.
- Can upload media from victim's account.
- can view private media uploaded in victim's account.
The report
Hi Team,
Below URL is missing authorisation where user A who is not having access to user B's data is able to view the video/pics by user.
Vulnerable request:
GET /1/library/list.json?account_id=4503599659510351&owner_id=12&limit=20&offset=0 HTTP/1.1
Host: studio.twitter.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://studio.twitter.com/library
Cookie:
Connection: keep-alive
Steps to reproduce:
- Login to your studio.twitter.com account.
- Go to studio.twitter.com/1/library/list.json?account_id=4503599659510351&owner_id=12&limit=20&offset=0
Change the owner_id to see more of his private videos.
Thanks, Anand
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 attacker could view private media, upload media, delete media, and tweet from another user's account.
What the attacker needed
A studio.twitter.com account; victim's owner_id (publicly available)
How it was found
- Log in to your studio.twitter.com account.
- Navigate to the library list endpoint with a specific account_id and owner_id.
- Change the owner_id parameter to another user's ID to view their private media.
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 log into a website, the server should check that you are allowed to see or change each piece of data. Here, the server trusted a number in the request (owner_id) to decide whose media to show, without checking if you actually own that account. By changing that number, anyone could access other people's private media and even post or delete content as them.
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.