Skip to content
Access control Write-up Intermediate

I Found A Bug That Exposed Private Instagram Posts To Anyone

An unauthenticated request to a private Instagram profile with specific mobile headers returned HTML containing embedded JSON with private post data, including CDN links to full-resolution images and captions. An attacker could access private posts without logging in or following the account.

Jatin Banga Follow

Published on infosecwriteups.com

In October 2025, I discovered a server-side vulnerability in Instagram that allowed completely unauthenticated access to private account posts. No login required.

Jatin Banga, on infosecwriteups.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.

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 a server-side authorization failure where the backend populated private timeline data for unauthenticated requests under certain header conditions, rather than a CDN caching issue.

Impact

Private posts of some accounts could be viewed by anyone without authentication, though the bug was conditional and did not affect all private accounts tested.

What the attacker needed

No login required; target account must be private; specific mobile headers; vulnerable account (conditional)

The fix

The issue was silently patched by Meta within 48 hours, but no root cause analysis was provided.

How it was found

  1. Send an unauthenticated GET request to the private profile URL with specific mobile headers.
  2. The server returns HTML containing embedded JSON with a timeline connection object.
  3. Extract CDN links from the edges array in that JSON.
  4. Access the private photos and captions directly via those links.

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.

Instagram lets you mark your account as private, so only approved followers can see your posts. This bug meant that anyone, without logging in, could send a special web request and get back links to private photos and captions. The server was supposed to check if the requester was allowed to see the content, but it did not.

What is Access control?

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.

More by Jatin Banga

View all

3 more disclosed reports, best first.

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.