Skip to content
Access control Disclosed report Intermediate

[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.

kedrischh Follow

Originally disclosed on HackerOne

  • 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

The original report as published on HackerOne, by kedrischh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Share media with a victim user.
  2. Modify the post request to use the victim's account ID.
  3. 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.

More by kedrischh

View all

2 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.