HexBrain

X / xAI · Report #52646

Insecure direct object reference - have access to deleted DM's

Validstatus
10upvotes
12 Oct 2015disclosed

How it was found

Hello,

The bug is straight and simple, I have access to deleted DM's. Once a DM is deleted a user/app will still be able to access the DM's using show DM endpoint

Attack Scenario

Their are two accounts Sam and Molly , Sam Dm's Molly something important and both quickly delete the Dm's after the chat, Sam has given access to a 3rd party app which can access his DM's. When Sam DM's molly every DM gets a unique id like 123456 and the DM can be accessed using the following API call , https://api.twitter.com/1.1/direct_messages/show.json?id={DM-id} Now let's say Sam and Molly both deleted the DM , but the 3rd party app can still access the deleted DM using the above end point.

Steps to reproduce

POC: Check for video attached

Regards, Wesecureapp

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original