Skip to content
SSRF Write-up Intermediate

Inner-Parser SSRF

A service accepted an uploaded file whose declared type was audio but whose contents were an HLS playlist, and the media decoder followed the URLs inside it, making outbound requests that bypassed the URL validator. An attacker could use this to reach internal resources or cloud metadata that the outer validator blocked.

sin99xx Follow

Published on sin99xx.medium.com

If you’ve been doing SSRF long enough, you’ve stopped writing exploits and started writing checklists. Block IP literals in every base.

sin99xx, on sin99xx.medium.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 the inner media library was treated as a passive file parser and not as a network client, so it followed URLs embedded in user-supplied content without the outer validator's IP, hostname, or protocol restrictions.

Impact

The inner fetcher could make requests to internal or cloud-metadata addresses that the outer validator blocked, potentially exposing sensitive data or internal services.

What the attacker needed

Ability to upload files; endpoint processes uploaded media; attacker controls an external inspector

The fix

The inner library should be given the same network restrictions as the outer fetcher, such as an explicit protocol allowlist, an egress proxy with the same IP and hostname policy, and format validation by magic bytes.

How it was found

  1. Upload a file whose extension and MIME type claim it is audio but whose body is an HLS playlist containing URLs to an inspector you control.
  2. Submit the uploaded file through the normal endpoint that processes audio.
  3. Observe the inspector receiving requests from the platform's decoder, confirming an inner fetcher exists.
  4. Re-aim the inner reference at addresses the outer validator blocks, such as cloud metadata endpoints or internal hostnames, to confirm the inner fetcher does not share the outer policy.

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.

A web service often lets you give it a link, and it checks that link to stop you from making it visit internal machines. But if the service also processes files you upload, the library that reads the file may itself fetch links found inside the file. That second fetcher never sees the first check, so it can be tricked into visiting places the first check would have blocked.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by sin99xx

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.