Skip to content
IDOR Disclosed report Beginner

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

Deleted direct messages remained retrievable through the show DM API endpoint, so a third-party app with access to a user's DMs could still read messages that both parties had deleted. The report demonstrates this by calling the endpoint after deletion and still receiving the message.

akhil-reni Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 6 months
  • Paid in 8 days
  • Disclosed after 7 months

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

  • Create 2 account's A and B
  • From account A Dm account B
  • Note down the Dm id , and make an api

https://api.twitter.com/1.1/direct_messages/show.json?id=[noted-dm-id]

  • Now delete the DM
  • Repeat the api call

https://api.twitter.com/1.1/direct_messages/show.json?id=578631102144741376

  • You will still have access to the deleted DM.

POC: Check for video attached

Regards, Wesecureapp

Attachments

twitterdm.mp4 From the original on HackerOne

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

Impact

A third-party app with DM access could still read messages that both parties had deleted, which may expose sensitive content the users believed was removed.

What the attacker needed

Two accounts; a third-party app with DM access; knowledge of the DM identifier

How it was found

  1. Create two accounts, A and B.
  2. From account A, send a direct message to account B.
  3. Note the DM identifier and call the show DM API endpoint with it.
  4. Delete the DM.
  5. Call the same show DM API endpoint again with the noted identifier.
  6. The deleted DM is still returned.

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 delete a message, it is still available through a direct API request. Any app that knew the message's identifier could still fetch it, even after both people deleted it.

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 akhil-reni

View all

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