Skip to content
IDOR Disclosed report Beginner

Urgent : Unauthorised Access to Media content of all Direct messages and protected tweets(Indirect object reference)

An endpoint on the ads platform returned a direct CDN link for any media ID without checking ownership, so an attacker could view private media from direct messages and protected tweets. The reporter verified this by changing the media ID in the request.

Vijay Kumar Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 20 months
  • Paid in 7 days
  • Disclosed after 2.4 years

Hi Team,

You can tweet from your ad account while creating a campaign.When you add a media content from your computer and upload it there is a Json request which gives you the link of your media(Photos) to preview before Tweeting.This link is Vulnerable to IDOR Attack and it leads to disclose all the media content of twitter.I have checked and verified that it discloses the media content of any user's Direct messages and also protected tweets.

Vulnerable HTTP request :

GET /media_id_to_cdn_url.json?media_id=[Media_id]&_=1447455982153 HTTP/1.1 Host: ads.twitter.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0 Accept: / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest Referer: https://ads.twitter.com/accounts/18ce53x5krr/campaigns/5936943/copy?campaign_type=followers&promoted_account=true&source=campaign_dashboard Cookie: [Cookie_values] Connection: keep-alive

Here Media_id is vulnerable to IDOR attack and it leads to give you the exact link of the Media content(Photos).

For more Information I am providing Video POC : Link : https://youtu.be/GMZgEqej61M

This is a critical issue ,Kindly Fix it in priority.

Best Regards ! Vijay Kumar

The original report as published on HackerOne, by indoappsec. 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 endpoint looked up a media ID and returned its CDN URL without verifying that the requesting user owned or had access to that media.

Impact

An attacker could obtain direct CDN links to private photos from any user's direct messages and protected tweets, breaking the privacy of those communications.

What the attacker needed

Access to the ads campaign composer; knowledge of a media ID

How it was found

  1. Start creating an ad campaign and upload a photo to the tweet composer.
  2. Observe the JSON request that returns the media preview link.
  3. Change the media_id parameter to another value.
  4. Receive a direct CDN link to that media, including 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 upload a photo, the site gives it a unique number (media ID). The site had a page that turned any media ID into a working link to the photo, but it did not check whether the person asking was allowed to see that photo. So anyone who knew or guessed a media ID could open private pictures from other people's direct messages or protected tweets.

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.

More by Vijay Kumar

View all

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

Insecure direct object reference (IDOR)

The lesson behind this report.

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.