Retrieve Archived Stories Of Any Public Instagram Account.
An Instagram GraphQL endpoint was vulnerable to an IDOR, allowing an attacker to retrieve archived stories of any public account by changing the user ID parameter. The attacker could access all archived stories of a targeted user.
Naveen
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the endpoint failed to verify that the requesting user was authorised to access the target user's archived stories, relying only on the supplied user ID.
What the attacker needed
Target account is public; knowledge of target user ID
How it was found
- Send a request to the ads/graphql endpoint with the required parameters.
- Replace the id parameter with the target user's ID.
- Receive the target user's archived stories in the response.
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 write-up has not been written yet. The Original tab links to the source.
An IDOR (Insecure Direct Object Reference) is a flaw where a website uses a user-supplied identifier, like a user ID, to fetch data without checking if the requester is allowed to see it. Here, the Instagram endpoint accepted any user ID and returned that user's archived stories, so an attacker could simply swap in someone else's ID to view private content.
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.