Skip to content
SSRF Write-up Intermediate

IMDS Abused: Hunting Rare Behaviors to Uncover Exploits

The article describes how the Wiz research team used anomaly detection to find two real-world SSRF vulnerabilities: one in the Pandoc document converter (CVE-2025-51591) and one in ClickHouse. In both cases, attackers could craft requests to the cloud instance metadata service (IMDS) to steal temporary credentials, though the attacks were mitigated by IMDSv2 and limited privileges.

Hila Ramati Follow

Published on wiz.io

In the world of cloud security, the Instance Metadata Service (IMDS) is a fundamental building block. It’s designed to provide virtual machines with a simple way to securely get temporary credentials and critical data without hardcoding secrets.

Hila Ramati, on wiz.io

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 applications allowed user-controlled input to trigger server-side requests to arbitrary URLs, including the cloud metadata endpoint, without proper restrictions.

Impact

The attacks could have led to credential theft and cloud resource compromise, but in the Pandoc case IMDSv2 blocked the requests, and in the ClickHouse case the instance lacked sufficient privileges, so no significant damage occurred.

What the attacker needed

Ability to submit HTML to a service using pandoc; service lacks sandbox or raw_html flag; IMDSv1 enabled (for successful exploitation)

How it was found

  1. Monitor process-level IMDS access across cloud environments to establish a baseline of normal usage.
  2. Identify processes that access IMDS in only a small fraction of environments, flagging them as anomalous.
  3. Filter for requests to sensitive IMDS endpoints such as IAM info and security credentials.
  4. Investigate the anomalous process (e.g., pandoc) and discover it renders iframe tags, enabling SSRF.
  5. Confirm the attack by observing crafted HTML documents with iframe src pointing to the IMDS endpoint.

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.

Cloud servers have a special internal address that hands out temporary passwords so programs don't have to store them. If a web app can be tricked into fetching that address, an attacker can steal those passwords. This article shows how researchers spotted unusual requests to that address and traced them to two vulnerable apps.

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 Hila Ramati

View all

2 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.