Unauthorized Access to Protected Tweets via niche.co API
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:
- the victim need to connect their twitter account with
niche.co - use the
niche.coAPI 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

- now when other user try to visit victim profile it will look like this

- now visit
https://www.niche.co/get-startedand chose twitter , allow and or Authorize Niche to use your account and complete the rest (including confirming your email address).
attacker side
- attacker no need to have twitter account and or no need to have
Nicheaccount here , this made the severity is high - 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

- scroll down the page till you see something like this
/users/52667/posts?accounts=162059

- and open it, so the full URI will become
https://www.niche.co/api/v1//users/52667/posts?accounts=162059 - and BOOM! the attacker now have Access to Protected Tweets from victim account.


noted to follow the rules, I use my own account as the victim, so there is no other / real account has been compromised.
Regards,
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.