Skip to content
IDOR Disclosed report Beginner

Delete anyone's content spotlight remotely.

The delete-story mutation on Snapchat's web posts page accepted any story identifier without checking that the caller owned it. An attacker could swap in another user's spotlight video identifier and delete that person's content.

prickn9 Follow

Originally disclosed on HackerOne

Bounty$15,000 High View original
  • Triaged in 3 days
  • Fixed in 9 days
  • Paid in 10 days
  • Disclosed after 2 months

Hello Snapchat, Snapchat has viral video feature callled spotlight which alone was the biggest trend and increase snapchat users and profit in millions. I found a way to delete anyone's spotlight remotely.

Please see the below poc:-

  1. First go to https://my.snapchat.com/myposts and log in there.
  2. You will see your posts .
  3. Now turn burp suite and intercept.

4.Select any of your posts and click delete option. 5. Now capture the delete request. In delete request there is parameter of id

{"operationName":"DeleteStorySnaps","variables":{"ids":["███████"],"storyType":"SPOTLIGHT_STORY"},"query":"mutation DeleteStorySnaps($ids: [String!]!, $storyType: StoryType!) {\n deleteStorySnaps(ids: $ids, storyType: $storyType)\n}\n"}

  1. You just have to change this id parameter. You can easily get the id parameter. Now forward the request after replacing id with someone's else video id.

And the video of other user will get delete.

HOW TO GET ID PARAMETER

  1. Whenever you share spotlight you can see the parameter in the url as:

https://story.snapchat.com/spotlight/█████

I have attached a video POC please check it out

Impact

Delete anyone's Content Spotlight. Imagine deleting video biggest influencers and content creators.

The original report as published on HackerOne, by prickn9. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Snapchat's Spotlight is a short video feature that the report describes as the platform's viral video product, credited with driving user growth and revenue. Users publish Spotlight videos, and those videos are managed from the web interface at my.snapchat.com, where an authenticated user can see their own posts and delete them.

The asset in scope is accounts.snapchat.com. The report was filed on HackerOne against the Snapchat program, rated high severity, classified as an Insecure Direct Object Reference (IDOR), and paid a bounty of 15,000 USD. It was disclosed on 6 March 2023.

The researcher's claim is simple: the delete operation for a Spotlight post trusts an identifier supplied by the client, so by swapping that identifier for another user's video ID, an attacker can delete someone else's Spotlight content remotely.

Setup

No special accounts, roles or versions are described. The only preconditions the report states are:

  1. A logged-in Snapchat account with at least one post of your own, so that you have a delete request to intercept.
  2. A web proxy to intercept and modify traffic. The report names Burp Suite.
  3. A way to obtain the target video's ID, which the report explains separately.

Finding it

The researcher was looking at the delete flow on the my-posts page. Deleting a post from the web UI produces a GraphQL mutation request whose variables.ids array carries the identifier of the post being deleted. The identifier is sent in the request body, and the researcher changed it to another user's video ID.

That is the whole of the reasoning in the report: the delete request contains an id parameter, and the researcher changed it.

Exploitation

Step 1: Open the my-posts page and log in

HTTP
https://my.snapchat.com/myposts

The page lists the posts belonging to the logged-in account.

Step 2: Intercept the delete request

With Burp Suite running as an intercepting proxy, select any of your own posts and click the delete option. The delete request is captured. The report notes that the request contains an id parameter.

Step 3: Read the captured mutation

The captured request body looks like this:

JSON
{"operationName":"DeleteStorySnaps","variables":{"ids":["███████"],"storyType":"SPOTLIGHT_STORY"},"query":"mutation DeleteStorySnaps($ids: [String!]!, $storyType: StoryType!) {\n  deleteStorySnaps(ids: $ids, storyType: $storyType)\n}\n"}

The important parts:

  • operationName is DeleteStorySnaps, the GraphQL mutation that removes story snaps.
  • variables.ids is an array of string IDs. In the captured request it holds the ID of the researcher's own post (redacted here).
  • variables.storyType is SPOTLIGHT_STORY, which scopes the mutation to Spotlight content.
  • query is the mutation document itself, taking $ids and $storyType and calling deleteStorySnaps.

Step 4: Replace the ID and forward

The researcher replaces the value in the ids array with another user's video ID and forwards the request. The report states that the other user's video is then deleted. No response body is shown; the outcome described is simply that the video is removed.

Getting the ID parameter

The report explains that a Spotlight video's ID is easy to obtain. When you share a Spotlight video, the ID appears in the URL:

HTTP
https://story.snapchat.com/spotlight/█████

So any Spotlight link exposes the identifier that the delete mutation accepts. The researcher also attached a video proof of concept, which is referenced in the report but not reproduced here.

Root cause

The deleteStorySnaps mutation accepted an ID belonging to another user, so the request deleted that user's video. The ID is a value the client sends, and it also appears in Spotlight share URLs, so an authenticated user can name another user's video in the mutation.

Likely, the server-side handler resolves the object from the ID and performs the delete, and the ownership check that should sit between those two steps is missing or ineffective. The report does not describe any server-side control that was bypassed; the request simply succeeded with a foreign ID.

Impact

An authenticated attacker can delete another user's Spotlight video whose ID they know, and IDs are exposed in share URLs. The report frames the worst case as deleting content belonging to the biggest influencers and content creators.

Fix

The report does not state what was changed. The fix that follows from the root cause is a server-side ownership check on deleteStorySnaps: before deleting, verify that every ID in ids belongs to the authenticated account, and reject the request otherwise. Relying on the client to send only its own IDs is not a control.

Variants to test

  1. Other GraphQL mutations on the same object type. Capture other story or post mutations (edit, hide, pin) and swap the ID for a foreign one. A positive result is the mutation returning success and the change being visible on the victim's content.
  2. Array-based IDOR. The ids field is an array. Try mixing your own ID with a foreign ID in the same request. A positive result is a partial success where the foreign object is affected alongside your own.
  3. Other storyType values. The mutation takes a storyType argument. Try the same ID swap with other story types the API accepts. A positive result is deletion of content outside Spotlight.
  4. ID sources beyond share URLs. Look for other places the same identifier appears (API responses, feeds, embeds) and confirm the delete mutation accepts them. A positive result is deletion using an ID obtained from a different surface.

Hunting notes

This bug lives in the gap between a client-supplied object identifier and the server-side ownership check. The signal during recon is a delete or modify action whose request body carries a raw object ID, especially in GraphQL where the ID sits in a variables object and is easy to overlook. If the same ID is visible in a public URL, as it is for Spotlight shares, the barrier to exploitation is close to zero.

The report demonstrated deletion of another user's video, attached a video proof of concept, and named the affected population (influencers and creators).

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Snapchat has a feature called Spotlight, where people post short videos. The report calls it the platform's viral video product, and credits it with bringing in new users and millions in revenue. You manage your own Spotlight posts from a web page at my.snapchat.com, where you can see your posts and delete them.

The researcher found that when you delete one of your own Spotlight videos, the website sends a request to Snapchat's servers that says, in effect, "delete the video with this ID". The ID is just a label for the video. The server accepted a video ID belonging to someone else and deleted that video. So if you took the request for deleting your own video and swapped your video's ID for someone else's video ID, the server would happily delete that other person's video.

This kind of bug is called an Insecure Direct Object Reference, or IDOR. It means the application uses a direct reference to an object (here, a video ID) without checking that the user is allowed to access or modify that object. A simple comparison: imagine a cloakroom where you hand in your coat and get a ticket with a number. If the attendant gives back whatever coat matches the number on the ticket without checking that the ticket is yours, anyone could swap tickets and take someone else's coat. Here, the video ID is the ticket, and the server did not check ownership.

The report was filed on HackerOne against Snapchat, rated high severity, classified as an IDOR, and paid a bounty of 15,000 USD. It was disclosed on 6 March 2023. The asset in scope is accounts.snapchat.com.

The researcher's claim is simple: the delete operation for a Spotlight post trusts an identifier supplied by the client, so by swapping that identifier for another user's video ID, an attacker can delete someone else's Spotlight content remotely.

Setup

The report does not describe any special accounts, roles or software versions. The only preconditions it states are:

  1. A logged-in Snapchat account with at least one post of your own, so that you have a delete request to intercept.
  2. A web proxy to intercept and modify traffic. The report names Burp Suite. A web proxy is a tool that sits between your browser and the website, letting you see and change the requests and responses. Think of it as a mail sorting office that opens letters, lets you read and rewrite them, and then sends them on.
  3. A way to obtain the target video's ID, which the report explains separately.

Finding it

The researcher was looking at the delete flow on the my-posts page. When you delete a post from the web interface, the browser sends a request to Snapchat's servers. That request is a GraphQL mutation. GraphQL is a way for a website to ask a server to fetch or change data using a structured query language; a mutation is the part of GraphQL that changes data (as opposed to a query, which only reads). The mutation request carries the identifier of the post being deleted inside a field called variables.ids. The identifier is sent in the request body, and the researcher changed it to another user's video ID.

That is the whole of the reasoning in the report: the delete request contains an id parameter, and the researcher changed it.

Exploitation

Step 1: Open the my-posts page and log in

HTTP
https://my.snapchat.com/myposts

This is the address of the page that lists the posts belonging to the logged-in account. You open it in your browser and log in with your Snapchat account. The page shows your own posts, each with a delete option.

Step 2: Intercept the delete request

With Burp Suite running as an intercepting proxy, select any of your own posts and click the delete option. The delete request is captured. The report notes that the request contains an id parameter. Intercepting means the proxy pauses the request before it reaches the server, so you can inspect and modify it. You do this to see exactly what the browser sends when you delete a post, and to get a request you can later alter.

Step 3: Read the captured mutation

The captured request body looks like this:

JSON
{"operationName":"DeleteStorySnaps","variables":{"ids":["███████"],"storyType":"SPOTLIGHT_STORY"},"query":"mutation DeleteStorySnaps($ids: [String!]!, $storyType: StoryType!) {\n  deleteStorySnaps(ids: $ids, storyType: $storyType)\n}\n"}

This is a JSON object, a common text format for sending structured data. Let us go through it piece by piece:

  • "operationName":"DeleteStorySnaps" tells the server which operation is being called. Here it is DeleteStorySnaps, the GraphQL mutation that removes story snaps. A "snap" is Snapchat's term for a piece of content; a "story" is a collection of snaps.
  • "variables":{"ids":["███████"],"storyType":"SPOTLIGHT_STORY"} holds the inputs for the operation. ids is an array (a list) of strings, and in the captured request it contains the ID of the researcher's own post, redacted here as ███████. storyType is SPOTLIGHT_STORY, which scopes the mutation to Spotlight content.
  • "query":"mutation DeleteStorySnaps($ids: [String!]!, $storyType: StoryType!) {\n deleteStorySnaps(ids: $ids, storyType: $storyType)\n}\n" is the mutation document itself. It declares that the operation takes two variables, $ids (a list of strings) and $storyType (a story type), and then calls deleteStorySnaps with those variables. The \n sequences are just newline characters inside the JSON string.

In plain terms, the request says: "Run the DeleteStorySnaps operation, with the list of IDs in ids and the story type SPOTLIGHT_STORY." The server is expected to delete the snaps whose IDs are listed.

Step 4: Replace the ID and forward

The researcher replaces the value in the ids array with another user's video ID and forwards the request. Forwarding means letting the modified request continue to the server. The report states that the other user's video is then deleted. No response body is shown; the outcome described is simply that the video is removed. The request deleted the video whose ID was supplied, even though it belonged to another user.

Getting the ID parameter

The report explains that a Spotlight video's ID is easy to obtain. When you share a Spotlight video, the ID appears in the URL:

HTTP
https://story.snapchat.com/spotlight/█████

A URL is the address of a web page. Here, the part after /spotlight/ is the video's ID, redacted as █████. So any Spotlight link exposes the identifier that the delete mutation accepts. If someone shares their Spotlight video, the link contains the ID you need to target it. The researcher also attached a video proof of concept, which is referenced in the report but not reproduced here.

Root cause

The deleteStorySnaps mutation accepted an ID belonging to another user, so the request deleted that user's video. Authorises here means checks permission. The ID is a value the client sends, and it also appears in Spotlight share URLs, so an authenticated user can name another user's video in the mutation.

Likely, the server-side handler resolves the object from the ID and performs the delete, and the ownership check that should sit between those two steps is missing or ineffective. The report does not describe any server-side control that was bypassed; the request simply succeeded with a foreign ID.

Impact

An authenticated attacker can delete another user's Spotlight video whose ID they know, and IDs are exposed in share URLs. The report frames the worst case as deleting content belonging to the biggest influencers and content creators.

Fix

The fix that follows from the root cause is a server-side ownership check on deleteStorySnaps: before deleting, verify that every ID in ids belongs to the authenticated account, and reject the request otherwise. Relying on the client to send only its own IDs is not a control. In everyday terms, the cloakroom attendant must check that the ticket matches the coat before handing it over, rather than trusting whatever number is written on the ticket.

Variants to test

  1. Other GraphQL mutations on the same object type. Capture other story or post mutations (edit, hide, pin) and swap the ID for a foreign one. A positive result is the mutation returning success and the change being visible on the victim's content. This means trying the same trick on other actions, not just delete.
  2. Array-based IDOR. The ids field is an array. Try mixing your own ID with a foreign ID in the same request. A positive result is a partial success where the foreign object is affected alongside your own. Because the field accepts a list, you can test whether the server checks each ID individually.
  3. Other storyType values. The mutation takes a storyType argument. Try the same ID swap with other story types the API accepts. A positive result is deletion of content outside Spotlight. This checks whether the bug is limited to Spotlight or affects other kinds of stories.
  4. ID sources beyond share URLs. Look for other places the same identifier appears (API responses, feeds, embeds) and confirm the delete mutation accepts them. A positive result is deletion using an ID obtained from a different surface. This matters because if IDs leak in more places, the bug is easier to exploit.

Hunting notes

This bug lives in the gap between a client-supplied object identifier and the server-side ownership check. The signal during recon is a delete or modify action whose request body carries a raw object ID, especially in GraphQL where the ID sits in a variables object and is easy to overlook. If the same ID is visible in a public URL, as it is for Spotlight shares, the barrier to exploitation is close to zero.

The report demonstrated deletion of another user's video, attached a video proof of concept, and named the affected population (influencers and creators).

Glossary

  • API: Application Programming Interface; a set of rules that lets one piece of software talk to another, often over the web.
  • Authentication: The process of proving who you are, usually by logging in with a username and password.
  • Authorisation: The process of checking whether an authenticated user is allowed to perform a particular action.
  • Bounty: A reward paid by a company to a security researcher who reports a valid vulnerability.
  • Burp Suite: A tool used by security researchers to intercept, inspect and modify web traffic between a browser and a server.
  • Client: The software you use, such as your browser, that sends requests to a server.
  • Cookie: A small piece of data stored by your browser and sent with requests, often used to keep you logged in.
  • CVSS: Common Vulnerability Scoring System; a standard way to score the severity of a vulnerability.
  • GraphQL: A query language for APIs that lets clients request exactly the data they need, and also perform mutations to change data.
  • HackerOne: A platform where security researchers report vulnerabilities to companies and may receive bounties.
  • IDOR: Insecure Direct Object Reference; a vulnerability where an application exposes a direct reference to an object (like an ID) without checking that the user is allowed to access it.
  • Impact: The potential harm or damage that a vulnerability could cause.
  • Intercept: To pause a request or response in transit so it can be inspected or modified.
  • JSON: JavaScript Object Notation; a text format for structured data, using curly braces, square brackets, and key-value pairs.
  • Mutation: In GraphQL, an operation that changes data on the server (as opposed to a query, which only reads).
  • Parameter: A value passed in a request, often in the URL or body, that the server uses to decide what to do.
  • Payload: The part of a request that carries the data, such as the JSON body.
  • Proof of concept (PoC): A demonstration that a vulnerability can be exploited, often with steps or a video.
  • Proxy: An intermediary that sits between your browser and a server, forwarding requests and responses.
  • Recon: Reconnaissance; the phase of gathering information about a target before attacking.
  • Request: A message sent from a client to a server asking for something to be done or returned.
  • Response: A message sent from a server back to a client, often containing the result of a request.
  • Root cause: The underlying reason a vulnerability exists.
  • Server: A computer that provides services to clients over a network.
  • Session: A period of interaction between a user and a system, often maintained by a cookie or token.
  • Severity: A rating of how serious a vulnerability is, often based on impact and ease of exploitation.
  • Snap: Snapchat's term for a piece of content, such as a photo or video.
  • Spotlight: Snapchat's short video feature where users can publish videos to a public feed.
  • Story: A collection of snaps that can be viewed by others.
  • Token: A piece of data, often a string, used to authenticate a user or authorise a request.
  • URL: Uniform Resource Locator; the address of a resource on the web.
  • Vulnerability: A weakness in a system that can be exploited to cause harm.
  • Web proxy: See proxy.

More from Snapchat

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.