Able to see Twitter Circle tweets due to improper access control on the "FavoriteTweet" endpoint
The FavoriteTweet GraphQL endpoint allowed any user to like a Twitter Circle tweet without being a member of that Circle. By then requesting their own data archive, the attacker could read the full content of the private tweet.
- Triaged in 4 days
- Fixed in 56 days
- Paid in 14 days
- Disclosed after 18 months
Summary by the program
An attacker could like private posts shared to a victim’s Twitter Circle using the /FavoriteTweet GraphQL endpoint, despite not being a member of the Twitter Circle. The attacker could then request their account archive to view the contents of the private post, despite not having permission to view the post within the application.
The report
Description: Hi,
Twitter Circle is a new feature that allows posting tweets to a specific group selected by the user. However, I noticed any user can like the Twitter Circle tweets by modifying the "like" request.
That's our request to like a tweet :
████
If you change the tweet ID to a Twitter Circle tweet, you're able to like it. That's a bug, but it doesn't have a considerable impact because we cannot see the tweet. I went to my profile's "Likes" tab but I also couldn't see the tweet on that page. I checked other endpoints but couldn't find anything. Then I remembered something, on all social media platforms, we can request our data from the company. That data includes everything about our account, so I checked if Twitter has this feature, and, yes! Twitter allows us to download our data, so I requested my data on https://twitter.com/settings/download_your_data, and waited 24 hours, then I downloaded my data archive. In my data archive, I could see the liked Tweets, and it also contains the Twitter Circle tweet that I liked!
███
Steps To Reproduce:
1.Turn on your proxy program and like any tweet on Twitter
- You will send a POST request to the
FavoriteTweetendpoint - Change the
tweet_idto a Twitter Circle tweet ID, it should give200 OKon the response. - Now go to https://twitter.com/settings/download_your_data and request your data.
- Twitter will send an email when the data is ready, so you just need to wait until the data
- In the data archive, open the HTML file or check the
data/like.jsfile. You will see the content of the Twitter Circle tweet that you liked.
Impact
Twitter Circle is a feature that limits tweets to a specific group selected by the user. And the user can post sensitive things to his/her Twitter Circle group. Any attacker can see these tweets by abusing this vulnerability. That leads to information disclosure as these tweets can contain private things.
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 FavoriteTweet endpoint did not verify that the requesting user was a member of the tweet's Twitter Circle before recording the like, and the data export then included the full tweet content.
Impact
Any attacker could read private Twitter Circle tweets, leading to information disclosure of potentially sensitive content.
What the attacker needed
A Twitter account; knowing the ID of a Circle tweet; waiting for the data archive
How it was found
- Use a proxy to capture the like request sent to the FavoriteTweet endpoint.
- Change the tweet_id in that request to the ID of a Twitter Circle tweet; the server responds with 200 OK.
- Request a download of your account data from the settings page.
- Wait for the email saying the data is ready, then download the archive.
- Open the HTML file or the data/like.js file in the archive to see the content of the liked Circle tweet.
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.
Twitter Circle lets someone post a tweet that only a chosen group of people can see. The 'like' button on Twitter did not check whether you were allowed to see the tweet before letting you like it. Later, when you download your own Twitter data, the private tweet appeared in that file, so you could read it even though you were not in the Circle.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.