Skip to content
SSRF Write-up Advanced

SSRF 2 RCE

An unauthenticated debug endpoint and a frontend file-fetch handler with no URL validation allowed server-side GET requests to internal services. The attackers chained this SSRF through an unauthenticated ClickHouse instance to send POST requests to Hadoop YARN and execute commands, achieving remote code execution.

Команда DeteAct Follow

Published on deteact.ru

Это были киберучения (Red Teaming) для зрелой компании. Всё началось с обнаруженной SSRF уязвимости в аналитическом сервисе. Через него удалось отправлять HTTP-запросы к внутренним сервисам. Дальнейшая разведка показала, что внутри сети отсутствовала нормальная сегментация, а ClickHouse, Hadoop и несколько други� …

DeteAct, on deteact.ru

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

Impact

An attacker could use the SSRF to reach unauthenticated internal services and, via ClickHouse and Hadoop YARN, execute arbitrary commands on the cluster, leading to remote code execution.

What the attacker needed

Access to the analytics service; internal ClickHouse version >= 24.11; unauthenticated ClickHouse and YARN; knowledge of internal hostnames

How it was found

  1. Find the debug endpoint that leaks environment, container version and host information.
  2. Inspect frontend code and find the file endpoint that accepts a url parameter with no validation.
  3. Confirm SSRF by requesting an internal ClickHouse address through the url parameter.
  4. Scan internal hosts and ports through the SSRF to find ClickHouse and Hadoop YARN.
  5. Use ClickHouse's url() table function with INSERT to send a POST request to YARN's application creation API.
  6. Add user.name=hadoop to the YARN URL so the application starts and the command executes.

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.

SSRF (Server-Side Request Forgery) is when a website fetches a URL for you, and an attacker can make it fetch internal addresses that outsiders cannot reach. Here the analytics service would fetch any URL given to it, so the attackers used it as a proxy to reach internal databases and big-data tools. One of those tools, ClickHouse, could then be told to send a POST request to Hadoop YARN, which runs commands, leading to code execution.

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 Команда DeteAct

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.