Skip to content
IDOR Disclosed report Beginner

Unauthorized Access to Protected Tweets via niche.co API

eidelweiss Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 18 days
  • Disclosed after 32 days

Hello,

Summary: Normally If user (victim) set to private / protect their tweets in setting Tweet privacy, other people/user will not able to see their recent or their pass status/twits when they visit his/her (victim) profile. people only can see their (victim) profile images and information about how many tweet already post by that user , how many followers and following by that account and how many likes etc etc. but i found a way to view the protected tweets from other user who protect their tweets.

Description: in your policy i see there is new domain add as in scope target , and the domain is niche.co . there is some condition needed to success reproduce this vulnerability:

  1. the victim need to connect their twitter account with niche.co
  2. use the niche.co API to Access the Protected Tweets

Steps To Reproduce:

victim side

  • victim account is https://twitter.com/dummysystems
  • lets say the victim already set to protect his/her tweets via https://twitter.com/settings/safety
twitter_setting_safety.jpg
twitter_setting_safety.jpg From the original on HackerOne
  • now when other user try to visit victim profile it will look like this
twitter_private.jpg
twitter_private.jpg From the original on HackerOne
  • now visit https://www.niche.co/get-started and chose twitter , allow and or Authorize Niche to use your account and complete the rest (including confirming your email address).

attacker side

  1. attacker no need to have twitter account and or no need to have Niche account here , this made the severity is high
  2. just visit https://www.niche.co/api/v1/users/[victim_twitter_account] ( in this case the victim is https://www.niche.co/api/v1/users/dummysystems , the attacker will show some important information disclosure regarding the victim account
twitter_nichi_api_user.jpg
twitter_nichi_api_user.jpg From the original on HackerOne
  1. scroll down the page till you see something like this /users/52667/posts?accounts=162059
twitter_nichi_api_user_post.jpg
twitter_nichi_api_user_post.jpg From the original on HackerOne
  1. and open it, so the full URI will become https://www.niche.co/api/v1//users/52667/posts?accounts=162059
  2. and BOOM! the attacker now have Access to Protected Tweets from victim account.
twitter_private_tweet_expose.jpg
twitter_private_tweet_expose.jpg From the original on HackerOne
twitter_private_tweet_expose2.jpg
twitter_private_tweet_expose2.jpg

noted to follow the rules, I use my own account as the victim, so there is no other / real account has been compromised.

Regards,

The original report as published on HackerOne, by eidelweiss. 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.

What is known

A high-severity IDOR bug in *.twitter.com. HackerOne made it public on 2 November 2017.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 eidelweiss

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.

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.