Skip to content
SSRF Write-up Intermediate

Unveiling the Secrets: SSRF Adventures in Microsoft’s AI Playground

An endpoint that fetched an image from a user-supplied URL and generated a thumbnail was vulnerable to server-side request forgery. An attacker could make the server request internal resources, including cloud metadata, though token retrieval was blocked by required headers.

soufianehabti Follow

Published on medium.com

I will discuss a comprehensive SSRF (Server-Side Request Forgery) exploit that 5h3rl0ck and I discovered and successfully exploited within one of Microsoft’s AI products, namely Microsoft Designer.

Soufiane Habti, on 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 endpoint accepted an arbitrary URL and fetched it without validating that it pointed to an allowed external host, and it parsed a JSON field from the response to fetch a thumbnail.

Impact

An attacker could make the server request internal resources and read some responses, but could not retrieve cloud metadata tokens because additional headers were required.

What the attacker needed

Access to the Microsoft Designer endpoint; ability to host a JSON response; a Burp Collaborator or similar listener

How it was found

  1. Find an endpoint that takes a nextlink parameter and retrieves an image from it.
  2. Change the URL to a Burp Collaborator address and observe a parsing error.
  3. Host a JSON object mimicking the expected drive object with a thumbnails.medium.url pointing to the Collaborator.
  4. Send the request with the hosted JSON URL and receive a callback from a Microsoft IP.
  5. Set the Responsetype header to html to get the full response body.
  6. Request internal IPs and the cloud metadata URL to retrieve instance information.

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.

Server-side request forgery (SSRF) is when a server is tricked into making requests to places the attacker cannot reach directly, like internal services. Here, the app took a URL from the user to fetch an image, but did not check where that URL pointed. By hosting a fake response, the attackers made the server fetch internal addresses and read some information back.

What is SSRF?

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

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.