Skip to content
Access control Write-up Intermediate

How I Exposed Instagram's Private Posts by Blocking Users

The Instagram oEmbed endpoint returned private post data when the request included a mobile user agent and the attacker had blocked the victim. An attacker could view private posts and media of users who had blocked them.

003random Follow

Published on 003random.com

Bounty$14,500 View original

This post will go over how I discovered a vulnerability in Instagram which enabled me to view the posts of private Instagram accounts. But before we dive into that, we are traveling back in time a little.

003random, on 003random.com

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.

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.

Context

This write-up describes a vulnerability in Instagram, reported through Meta's bug bounty programme, that allowed the researcher to view posts from private Instagram accounts. The affected feature is Instagram's post embedding, which is backed by an oEmbed endpoint at https://www.instagram.com/api/v1/oembed/. When a user selects the embed option for a post (three dots above a post, then the embed option), Instagram opens a popup with embed HTML, and in the background requests the oEmbed endpoint. That endpoint returns a JSON structure containing information about the post, such as its author, title, and the media (photo) itself. The media is a URL to the Instagram CDN with special auth tokens that allow the post to be viewed.

The chain combines two weaknesses: an XS-Leak (cross-site leak) that lets an attacker infer whether a visitor has blocked the attacker's account, and a User-Agent dependent logic flaw in the oEmbed endpoint that bypasses access restrictions when the request appears to come from a mobile device.

The report was disclosed on 2023-10-12. The researcher is 003random (@rub003). The weakness is described as XSLeaks and a logic flaw. The bounty totalled 14,500 USD across the entries in the timeline. The report does not give a CVSS score or a formal severity rating.

Setup

The researcher had been testing Meta applications for weeks before the discovery, including an Android simulator, the Facebook main application, and the Instagram web application, without findings. The work described here was done in the run-up to BountyCon, the annual event, after the researcher's team had taken first place at BountyConEdu in Madrid. The team at BountyConEdu consisted of Ed, David, Linus, El and 003random.

The tools involved were Burp Suite (the researcher refers to Burp Suite repeater tabs), a Chrome instance logged in as an attacker account, and a user agent spoofer extension on Chrome that was set to a mobile user agent. The report does not state specific browser or Burp Suite versions.

The accounts involved are an attacker's Instagram account and a victim account. In the proof of concept, the attacker blocks the victims. The report notes that blocking is mutual in effect: when two accounts block each other, this includes an automatic unfollow.

Finding it

The starting point was the oEmbed endpoint itself. Requesting it for a post from a private account, whether or not the requester has access to the post, returns Private media with a 403 Forbidden. If the account of the post has blocked the requester, the response is No Media Match with a 404 Not Found. The researcher notes that many hunters have tried simply using the embed feature to pull private post data, and that it presents itself as properly secured.

A normal oEmbed request looks like this:

Bash
curl https://www.instagram.com/api/v1/oembed/?hidecaption=0&maxwidth=540&url=https://www.instagram.com/p/CxN8UGnIPp_

The response is a JSON structure with the post's title, author name, author URL, author ID, media ID, provider details, the HTML embed code, and a thumbnail URL pointing at the Instagram CDN with auth tokens:

JSON
{
    "version": "1.0",
    "title": "We still have some work to do, good to see some old friends though \ud83e\udd8e \ud83c\uddf8\ud83c\uddec",
    "author_name": "maxverstappen1",
    "author_url": "https://www.instagram.com/maxverstappen1",
    "author_id": 43904777,
    "media_id": "3192472975154674303_43904777",
    "provider_name": "Instagram",
    "provider_url": "https://www.instagram.com",
    "type": "rich",
    "width": 540,
    "height": null,
    "html": "[The HTML embed code that will be shown to the user in the popup]",
    "thumbnail_url": "https://scontent-ams4-1.cdninstagram.com/v/t51.2885-15/[redacted].jpg?stp=dst-jpg_e35_p480x480\u0026_nc_ht=scontent-ams4-1.cdninstagram.com\u0026_nc_cat=1\u0026_nc_ohc=knIz8ueMF40AX9Zuq-g\u0026edm=ALY_pVYBAAAA\u0026ccb=7-5\u0026oh=00_AfB0xZZ-[redacted]\u0026oe=650A23D8\u0026_nc_sid=57e406",
    "thumbnail_width": 480,
    "thumbnail_height": 600
}

The thumbnail_url is the CDN URL with the auth tokens that make the media viewable. The media_id and author_id fields are also present in the response.

Because the endpoint returns different responses depending on whether the requester is blocked, the researcher saw an opportunity for an XS-Leak. The report quotes the definition from xsleaks.dev: cross-site leaks are a class of vulnerabilities derived from side-channels built into the web platform, taking advantage of the web's core principle of composability, which allows websites to interact with each other, and abusing legitimate mechanisms to infer information about the user.

The researcher's plain-language explanation is that a malicious website can find out if the current visitor is banned by the attacker on Instagram, by relying on the different response given from the Instagram oEmbed endpoint for media from blocked and non-blocked accounts. The example given is identifying visitors who belong to a certain political party: the attacker creates an Instagram account, blocks all the victims, and has the website request posts from these accounts via the oEmbed endpoint.

While wrapping up the proof of concept and gathering evidence, the researcher blocked the test account one more time and requested the oEmbed endpoint via the Burp repeater tab. The JSON was gone and the response was No Media Match. Switching to the Chrome instance logged in as the attacker and pressing F5, the JSON was still there. Both accounts involved, the one logged into and the one hosting the post, were private and had blocked each other, which includes an automatic unfollow. The researcher first suspected Chrome caching, but a hard refresh (ctrl + F5) still showed the JSON post.

Exploitation

Step 1: Build the XS-Leak probe

The researcher wrote a proof of concept that loads the oEmbed endpoint as a script. The script contains two scenarios based on the response. If the endpoint returns valid JSON, script.onload fires. Otherwise script.onerror fires, meaning the current visitor has blocked the attacker on Instagram (or the attacker has blocked them).

HTML
<script>
    let script = document.createElement('script');
    script.src = "https://i.instagram.com/api/v1/oembed/?url=https://www.instagram.com/p/foo-barm&hidecaption=0&maxwidth=540";
    script.onload = () => { /* do something malicious */ };
    script.onerror = () => console.log('its not a politician');
    document.head.appendChild(script);
</script>

The script.src points at the oEmbed endpoint on i.instagram.com with a post URL, hidecaption=0 and maxwidth=540. The onload handler is where the attacker acts on a positive match; the onerror handler logs the negative case. The important parts are the endpoint path, the url parameter carrying the target post, and the two handlers that distinguish a JSON response from an error response.

Step 2: Notice the discrepancy between Burp and Chrome

With the same blocked relationship in place, the Burp repeater request returned No Media Match, while the Chrome request returned the JSON. A hard refresh did not change the Chrome result, which argued against caching.

Step 3: Isolate the difference: the User-Agent

Comparing the request Chrome made with the one in Burp Suite, the only actual difference the researcher noticed was the user agent, specifically the word iphone in it. The oEmbed endpoint has different logic for requests made from a mobile device versus requests from other devices such as desktops. The Chrome instance was using a user agent spoofer set to a mobile UA.

Step 4: Fuzz the User-Agent

The researcher fuzzed the user agent with a wordlist of device and technology names. The conclusion was that the behaviour seen from Chrome can only be replicated by placing android or iphone in the user agent, no matter the position or context.

Step 5: Combine the pieces

By blocking a user, then requesting their posts via the oEmbed endpoint with iphone or android in the user agent, the researcher could fetch the post title, description and media. The report states that this bypasses Meta's various security restrictions to retrieve posts and media that are normally inaccessible, including not only posts and reels but potentially other user information as well. At the time of discovery, an option existed to embed Instagram profiles, but that feature threw an error during correct usage, so it was impossible to determine whether the bypass worked on that oEmbed feature before a fix was deployed.

Root cause

The report gives Meta's own explanation. The oEmbed endpoint, specifically the mobile user-agent route, had an error case. The error was triggered when a post could not be fetched due to region blocking, that is, when a user specifies that different regions should not be able to view their content. The developers decided that embedding should be universally accessible, so they added an exception that uses a superuser account to bypass these restrictions and fetch the post content anyway. Only two places in the entire codebase used this superuser account.

In other words, the mobile route's exception, intended to make embedding work despite region blocks, used a superuser account to fetch the post content anyway.

The XS-Leak half relies on the endpoint returning distinguishable responses (valid JSON versus an error) that a cross-site page can observe through script loading.

Impact

The chain lets an attacker fetch the post title, description and media of private accounts, and potentially other user information, under the conditions described: the attacker blocks the victim (or the accounts block each other), and the request carries iphone or android in the user agent. The report also describes the XS-Leak use: a malicious website can determine whether the current visitor has blocked the attacker's Instagram account, which the researcher illustrates with the political party example.

On scale, the report says that with several attacking accounts and automation to block users or regions (chain piece 2/3), the issue could have led to widespread unauthorised access to private posts. The report hedges this as a possibility ("could have led to").

On post IDs, the researcher asked the Meta Security team about the seemingly random nature of Instagram post IDs. The team clarified that the IDs are not purely random; they are derived from the media IDs through some form of calculation or hashing algorithm. The team does not view the uniqueness of post IDs as a security measure, and acknowledges that with sufficient effort one could reverse-engineer the algorithm that transforms the media ID into the post ID.

The report also notes that Meta has several security measures at distinct levels, and that even if the application allows fetching a private piece of media from a different user, a permissions system at a different application level would still prevent it.

The issue earned third place out of a hundred hackers at BountyCon 2022.

Fix

The report states that the vulnerability has already been fixed and that the disclosure was made with explicit permission from Meta Platforms, Inc. The profile embed feature was already throwing an error during correct usage at the time of discovery, so the researcher could not confirm whether the bypass worked there before a fix was deployed.

Variants to test

  1. User-Agent dependent authorisation on oEmbed or embed endpoints. Send the same request with a desktop UA and with a UA containing iphone or android, against content the requester should not see (private account, blocked relationship, region restriction). A positive result is a different response body or status for the mobile UA, for example JSON with media URLs where the desktop UA returns an error.
  2. XS-Leak via script loading of JSON endpoints. Load an endpoint that returns JSON as a <script> from a cross-site page and observe onload versus onerror. A positive result is a reliable difference that correlates with a per-user state such as a block, a ban, or membership in a group.
  3. Block-based state inference. Create an attacker account, block candidate victims, and probe their content through the endpoint from a page the victim visits. A positive result is that the page can distinguish blocked from non-blocked visitors.
  4. Region-block exceptions. Look for features that are meant to be universally accessible (embeds, previews, link unfurls) and test whether their exception path also bypasses other restrictions. A positive result is content that is region-restricted or otherwise restricted being returned through the embed path.
  5. Superuser or service-account paths. Where a feature uses a privileged account to fetch content, test whether the privileged fetch is reachable from an unauthenticated or lower-privileged route. A positive result is content returned that the caller's own permissions would not allow.
  6. ID derivation. Where object IDs appear random, check whether they are derived from other identifiers exposed elsewhere. A positive result is being able to compute a target object's ID from a known identifier, which the report says Meta acknowledges is possible with sufficient effort but does not treat as a security measure.

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. 16 min read.

What happened, in plain words

A security researcher found a way to read posts from private Instagram accounts. Instagram normally hides those posts from anyone who is not approved to follow the account. The researcher discovered that a feature meant for sharing posts on other websites, called embedding, could be tricked into showing private content. The trick had two parts. First, the researcher used a technique that lets a website detect something about its visitors, in this case whether a visitor has blocked a particular Instagram account. Second, the researcher found that the same Instagram feature behaved differently depending on what kind of device the request claimed to come from. By making the request look like it came from a phone, the researcher could bypass the privacy check. The researcher reported the issue to Meta, which owns Instagram, and received a total of 14,500 USD in bounty payments. The report was disclosed on 2023-10-12. The researcher is known as 003random (@rub003). The weakness is described as XSLeaks and a logic flaw. No CVSS score or formal severity rating is given in the report.

Background and setup

Before the discovery, the researcher had spent weeks testing Meta applications, including an Android simulator, the main Facebook app, and the Instagram website, without finding anything. The work described here happened just before BountyCon, an annual security event, after the researcher's team had won first place at BountyConEdu in Madrid. The team at BountyConEdu consisted of Ed, David, Linus, El and 003random.

The tools used were Burp Suite (the researcher mentions Burp Suite repeater tabs), a Chrome browser logged in as an attacker account, and a browser extension that changes the user agent, set to a mobile user agent. The report does not state specific browser or Burp Suite versions.

The accounts involved are an attacker's Instagram account and a victim account. In the proof of concept, the attacker blocks the victims. The report notes that blocking is mutual in effect: when two accounts block each other, this includes an automatic unfollow. The report does not name any real victim accounts.

Finding it

The starting point was the oEmbed endpoint. An endpoint is a specific address on a server that a program can send requests to and get data back, like a service window at a train station where you ask for a specific ticket. oEmbed is a standard way for a website to ask another website for the details needed to display a link or a post nicely. Instagram's oEmbed endpoint is at https://www.instagram.com/api/v1/oembed/. When a user selects the embed option for a post (three dots above a post, then the embed option), Instagram opens a popup with embed HTML, and in the background requests the oEmbed endpoint. That endpoint returns a JSON structure containing information about the post, such as its author, title, and the media (photo) itself. JSON is a text format for structured data, like a very organised shopping list with labels. The media is a URL to the Instagram CDN with special auth tokens that allow the post to be viewed. A CDN (content delivery network) is a network of servers that deliver files quickly; an auth token is a short string that acts like a temporary key, proving you are allowed to see something.

Requesting the oEmbed endpoint for a post from a private account, whether or not the requester has access to the post, returns Private media with a 403 Forbidden. A 403 status code means the server understood the request but refuses to fulfil it. If the account of the post has blocked the requester, the response is No Media Match with a 404 Not Found. A 404 status code means the server cannot find the requested resource. The researcher notes that many hunters have tried simply using the embed feature to pull private post data, and that it presents itself as properly secured.

A normal oEmbed request looks like this:

Bash
curl https://www.instagram.com/api/v1/oembed/?hidecaption=0&maxwidth=540&url=https://www.instagram.com/p/CxN8UGnIPp_

This is a command for curl, a tool that sends HTTP requests from the command line. The URL has several parts. The base is https://www.instagram.com/api/v1/oembed/, the endpoint address. After the question mark come parameters, which are extra instructions. hidecaption=0 means do not hide the caption. maxwidth=540 sets the maximum width of the embedded media to 540 pixels. url=https://www.instagram.com/p/CxN8UGnIPp_ tells the endpoint which Instagram post to embed. The & separates the parameters.

The response is a JSON structure with the post's title, author name, author URL, author ID, media ID, provider details, the HTML embed code, and a thumbnail URL pointing at the Instagram CDN with auth tokens:

JSON
{
    "version": "1.0",
    "title": "We still have some work to do, good to see some old friends though \ud83e\udd8e \ud83c\uddf8\ud83c\uddec",
    "author_name": "maxverstappen1",
    "author_url": "https://www.instagram.com/maxverstappen1",
    "author_id": 43904777,
    "media_id": "3192472975154674303_43904777",
    "provider_name": "Instagram",
    "provider_url": "https://www.instagram.com",
    "type": "rich",
    "width": 540,
    "height": null,
    "html": "[The HTML embed code that will be shown to the user in the popup]",
    "thumbnail_url": "https://scontent-ams4-1.cdninstagram.com/v/t51.2885-15/[redacted].jpg?stp=dst-jpg_e35_p480x480\u0026_nc_ht=scontent-ams4-1.cdninstagram.com\u0026_nc_cat=1\u0026_nc_ohc=knIz8ueMF40AX9Zuq-g\u0026edm=ALY_pVYBAAAA\u0026ccb=7-5\u0026oh=00_AfB0xZZ-[redacted]\u0026oe=650A23D8\u0026_nc_sid=57e406",
    "thumbnail_width": 480,
    "thumbnail_height": 600
}

Each line in this JSON has a meaning. version is the oEmbed version. title is the post's caption text. author_name is the username of the account that posted. author_url is the link to that account. author_id is a numeric identifier for the author. media_id is an identifier for the media item. provider_name and provider_url identify Instagram as the provider. type is the oEmbed type, here rich. width and height give dimensions; height is null here. html contains the HTML code that would be shown in the popup. thumbnail_url is the CDN URL with the auth tokens that make the media viewable. thumbnail_width and thumbnail_height give the thumbnail's dimensions. The thumbnail_url is the important part: it includes tokens that grant access to the image.

Because the endpoint returns different responses depending on whether the requester is blocked, the researcher saw an opportunity for an XS-Leak. XS-Leak stands for cross-site leak. It is a class of vulnerabilities derived from side-channels built into the web platform. A side-channel is an indirect way of learning information, like guessing someone's password by listening to the clicks of a lock. The web's core principle of composability allows websites to interact with each other, and XS-Leaks abuse legitimate mechanisms to infer information about the user. The report quotes the definition from xsleaks.dev: cross-site leaks are a class of vulnerabilities derived from side-channels built into the web platform, taking advantage of the web's core principle of composability, which allows websites to interact with each other, and abusing legitimate mechanisms to infer information about the user.

The researcher's plain-language explanation is that a malicious website can find out if the current visitor is banned by the attacker on Instagram, by relying on the different response given from the Instagram oEmbed endpoint for media from blocked and non-blocked accounts. The example given is identifying visitors who belong to a certain political party: the attacker creates an Instagram account, blocks all the victims, and has the website request posts from these accounts via the oEmbed endpoint. If the request succeeds, the visitor has not blocked the attacker; if it fails, the visitor has blocked the attacker (or the attacker has blocked them). This is like a bouncer who checks a list: if you are on the list, you get in; if not, you are turned away. The website can observe which happens.

While wrapping up the proof of concept and gathering evidence, the researcher blocked the test account one more time and requested the oEmbed endpoint via the Burp repeater tab. Burp Suite is a tool for intercepting and modifying web traffic; the repeater tab lets you send the same request repeatedly with changes. The JSON was gone and the response was No Media Match. Switching to the Chrome instance logged in as the attacker and pressing F5 (refresh), the JSON was still there. Both accounts involved, the one logged into and the one hosting the post, were private and had blocked each other, which includes an automatic unfollow. The researcher first suspected Chrome caching, but a hard refresh (ctrl + F5) still showed the JSON post. Caching is when a browser stores a copy of a response to avoid fetching it again; a hard refresh forces the browser to ignore the cache and fetch fresh data.

Exploitation

Step 1: Build the XS-Leak probe

The researcher wrote a proof of concept that loads the oEmbed endpoint as a script. The script contains two scenarios based on the response. If the endpoint returns valid JSON, script.onload fires. Otherwise script.onerror fires, meaning the current visitor has blocked the attacker on Instagram (or the attacker has blocked them).

HTML
<script>
    let script = document.createElement('script');
    script.src = "https://i.instagram.com/api/v1/oembed/?url=https://www.instagram.com/p/foo-barm&hidecaption=0&maxwidth=540";
    script.onload = () => { /* do something malicious */ };
    script.onerror = () => console.log('its not a politician');
    document.head.appendChild(script);
</script>

This HTML code creates a script element dynamically. Line by line: let script = document.createElement('script'); creates a new script element in memory. script.src = "https://i.instagram.com/api/v1/oembed/?url=https://www.instagram.com/p/foo-barm&hidecaption=0&maxwidth=540"; sets the source URL of the script to the oEmbed endpoint on i.instagram.com, with parameters url pointing to a post, hidecaption=0, and maxwidth=540. script.onload = () => { /* do something malicious */ }; defines what happens if the script loads successfully; here it is a placeholder for malicious actions. script.onerror = () => console.log('its not a politician'); defines what happens if the script fails to load; it logs a message to the console. document.head.appendChild(script); adds the script to the page's head, which triggers the browser to fetch and execute it. The script.src points at the oEmbed endpoint on i.instagram.com with a post URL, hidecaption=0 and maxwidth=540. The onload handler is where the attacker acts on a positive match; the onerror handler logs the negative case. The important parts are the endpoint path, the url parameter carrying the target post, and the two handlers that distinguish a JSON response from an error response.

Step 2: Notice the discrepancy between Burp and Chrome

With the same blocked relationship in place, the Burp repeater request returned No Media Match, while the Chrome request returned the JSON. A hard refresh did not change the Chrome result, which argued against caching. This step was taken because the researcher needed to understand why the same request produced different results in different tools.

Step 3: Isolate the difference: the User-Agent

Comparing the request Chrome made with the one in Burp Suite, the only actual difference the researcher noticed was the user agent, specifically the word iphone in it. The user agent is a string that a browser sends with every request to identify itself and its operating system, like a name badge at a conference. The oEmbed endpoint has different logic for requests made from a mobile device versus requests from other devices such as desktops. The Chrome instance was using a user agent spoofer set to a mobile UA. A user agent spoofer is an extension that changes the user agent string, letting a desktop browser pretend to be a phone.

Step 4: Fuzz the User-Agent

The researcher fuzzed the user agent with a wordlist of device and technology names. Fuzzing means trying many variations automatically to see which ones change the behaviour. The conclusion was that the behaviour seen from Chrome can only be replicated by placing android or iphone in the user agent, no matter the position or context. This step was taken to narrow down exactly which part of the user agent triggered the different behaviour.

Step 5: Combine the pieces

By blocking a user, then requesting their posts via the oEmbed endpoint with iphone or android in the user agent, the researcher could fetch the post title, description and media. The report states that this bypasses Meta's various security restrictions to retrieve posts and media that are normally inaccessible, including not only posts and reels but potentially other user information as well. At the time of discovery, an option existed to embed Instagram profiles, but that feature threw an error during correct usage, so it was impossible to determine whether the bypass worked on that oEmbed feature before a fix was deployed. This step was taken to demonstrate the full impact of the chain.

Root cause

The report gives Meta's own explanation. The oEmbed endpoint, specifically the mobile user-agent route, had an error case. The error was triggered when a post could not be fetched due to region blocking, that is, when a user specifies that different regions should not be able to view their content. The developers decided that embedding should be universally accessible, so they added an exception that uses a superuser account to bypass these restrictions and fetch the post content anyway. A superuser account is a privileged account with elevated permissions, like a master key that opens all doors. Only two places in the entire codebase used this superuser account.

In other words, the mobile route's exception, intended to make embedding work despite region blocks, used a superuser account to fetch the post content anyway.

The XS-Leak half relies on the endpoint returning distinguishable responses (valid JSON versus an error) that a cross-site page can observe through script loading.

Impact

The chain lets an attacker fetch the post title, description and media of private accounts, and potentially other user information, under the conditions described: the attacker blocks the victim (or the accounts block each other), and the request carries iphone or android in the user agent. The report also describes the XS-Leak use: a malicious website can determine whether the current visitor has blocked the attacker's Instagram account, which the researcher illustrates with the political party example.

On scale, the report says that with several attacking accounts and automation to block users or regions (chain piece 2/3), the issue could have led to widespread unauthorised access to private posts. The report hedges this as a possibility ("could have led to").

On post IDs, the researcher asked the Meta Security team about the seemingly random nature of Instagram post IDs. The team clarified that the IDs are not purely random; they are derived from the media IDs through some form of calculation or hashing algorithm. A hashing algorithm is a one-way function that turns data into a fixed-size string, like a fingerprint. The team does not view the uniqueness of post IDs as a security measure, and acknowledges that with sufficient effort one could reverse-engineer the algorithm that transforms the media ID into the post ID.

The report also notes that Meta has several security measures at distinct levels, and that even if the application allows fetching a private piece of media from a different user, a permissions system at a different application level would still prevent it.

The issue earned third place out of a hundred hackers at BountyCon 2022.

Fix

The report states that the vulnerability has already been fixed and that the disclosure was made with explicit permission from Meta Platforms, Inc. The profile embed feature was already throwing an error during correct usage at the time of discovery, so the researcher could not confirm whether the bypass worked there before a fix was deployed.

Variants to test

  1. User-Agent dependent authorisation on oEmbed or embed endpoints. Send the same request with a desktop UA and with a UA containing iphone or android, against content the requester should not see (private account, blocked relationship, region restriction). A positive result is a different response body or status for the mobile UA, for example JSON with media URLs where the desktop UA returns an error.
  2. XS-Leak via script loading of JSON endpoints. Load an endpoint that returns JSON as a <script> from a cross-site page and observe onload versus onerror. A positive result is a reliable difference that correlates with a per-user state such as a block, a ban, or membership in a group.
  3. Block-based state inference. Create an attacker account, block candidate victims, and probe their content through the endpoint from a page the victim visits. A positive result is that the page can distinguish blocked from non-blocked visitors.
  4. Region-block exceptions. Look for features that are meant to be universally accessible (embeds, previews, link unfurls) and test whether their exception path also bypasses other restrictions. A positive result is content that is region-restricted or otherwise restricted being returned through the embed path.
  5. Superuser or service-account paths. Where a feature uses a privileged account to fetch content, test whether the privileged fetch is reachable from an unauthenticated or lower-privileged route. A positive result is content returned that the caller's own permissions would not allow.
  6. ID derivation. Where object IDs appear random, check whether they are derived from other identifiers exposed elsewhere. A positive result is being able to compute a target object's ID from a known identifier, which the report says Meta acknowledges is possible with sufficient effort but does not treat as a security measure.

Glossary

  • API: Application Programming Interface; a set of rules that lets one program request data or actions from another.
  • Auth token: A short string that acts like a temporary key, proving you are allowed to access a resource.
  • BountyCon: An annual security event organised by Meta.
  • BountyConEdu: A student-focused version of BountyCon, held in Madrid.
  • Burp Suite: A tool for intercepting and modifying web traffic between a browser and a server.
  • Caching: Storing a copy of a response to avoid fetching it again.
  • CDN: Content Delivery Network; a network of servers that deliver files quickly.
  • Chrome: A web browser made by Google.
  • Cookie: A small piece of data stored by a website in your browser, often used to remember you or keep you logged in.
  • Cross-site leak (XS-Leak): A class of vulnerabilities that use side-channels in the web platform to infer information about a user.
  • CSS: Cascading Style Sheets; a language for describing the presentation of web pages.
  • curl: A command-line tool for sending HTTP requests.
  • CVSS: Common Vulnerability Scoring System; a standard way to rate the severity of a security vulnerability.
  • Endpoint: A specific address on a server that a program can send requests to.
  • Fuzzing: Trying many variations automatically to see which ones change behaviour.
  • HTML: HyperText Markup Language; the standard language for creating web pages.
  • HTTP: HyperText Transfer Protocol; the protocol used to transfer web pages and data.
  • JSON: JavaScript Object Notation; a text format for structured data.
  • Media ID: An identifier for a media item on Instagram.
  • oEmbed: A standard way for a website to ask another website for the details needed to display a link or post.
  • Parameter: An extra instruction in a URL, after the question mark.
  • Region blocking: A setting that prevents users in certain regions from viewing content.
  • Script: A piece of code, often JavaScript, that runs in a web page.
  • Side-channel: An indirect way of learning information.
  • Superuser account: A privileged account with elevated permissions.
  • User agent: A string that a browser sends with every request to identify itself and its operating system.
  • User agent spoofer: An extension that changes the user agent string.
  • XS-Leak: See cross-site leak.
  • 403 Forbidden: An HTTP status code meaning the server understood the request but refuses to fulfil it.
  • 404 Not Found: An HTTP status code meaning the server cannot find the requested resource.

More by 003random

View all

3 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.