[URGENT] Opportunity to publish tweets on any twitters account
A flaw in Twitter Ads Studio request handling let an attacker post tweets from any user's account. By sharing media with a victim and altering the post request to use the victim's account ID, the media was published as the victim.
- Triaged in 45 hours
- Fixed in 3 days
- Paid in 6 days
- Disclosed after 3 months
Summary by the program
The reporter discovered a flaw in the handling of Twitter Ads Studio requests which allowed an attacker to tweet as any user. By sharing media with a victim user and then modifying the post request with the victim's account ID the media in question would be posted from the victim's account. This bug was patched immediately after being triaged and no evidence was found of the flaw being exploited by anyone other than the reporter.
Summary by the researcher
Write-up of the vulnerability here: https://medium.com/@kedrisec/publish-tweets-by-any-other-user-6c9d892708e3
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 trusted a client-supplied account identifier in the Ads Studio request without verifying it matched the authenticated user.
Impact
An attacker could publish tweets as any other user.
What the attacker needed
Ability to share media with victim; ability to intercept and modify requests
The fix
The bug was patched immediately after being triaged.
How it was found
- Share media with a victim user.
- Modify the post request to use the victim's account ID.
- The media is posted from the victim's account.
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's advertising tool had a mistake in how it checked who was allowed to post. An attacker could share a picture with someone, then change a hidden value in the request to that person's account number, and the picture would appear as a tweet from that person. This meant anyone could post messages pretending to be someone else.
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.