Skip to content
SSRF Write-up Advanced

How dangerous is Request Splitting, a vulnerability in Golang or how we found the RCE in Portainer and hacked Uber

A request splitting vulnerability in Portainer allowed an attacker to inject CRLF sequences into the Docker API request path, enabling arbitrary requests to the local Docker API. This could be chained with Docker API access to achieve remote code execution on the host.

Andrey Abakumov Follow

Published on andrei-abakumov.medium.com

One night I was sitting and decided to look at the security of Uber infrastructure, launched a scanner and my eye caught on the host data-07.uberinternal.com I charged nmap, port 9000 was found. It was an obscure web service - Portainer.

Andrei Abakumov, on andrei-abakumov.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

The execID parameter was concatenated into the Docker API request path without proper encoding, allowing CRLF injection and HTTP request splitting.

Impact

An attacker could execute arbitrary commands on the host running Portainer, but the affected Uber servers were decommissioned and not part of their infrastructure.

What the attacker needed

Access to the Portainer web interface; Knowledge of a valid container ID

How it was found

  1. Send an HTTP-upgrade request to the WebSocket endpoint with a crafted execID containing CRLF sequences.
  2. The CRLF injection splits the request, allowing addition of headers and a second request to the Docker API.
  3. Use the injected request to make the Docker API pull an image from an attacker-controlled server, confirming SSRF.
  4. Further exploit by creating a container from scratch, mounting host directories, and running commands to achieve RCE.

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.

The report describes a bug in a tool called Portainer that manages Docker containers. By manipulating a part of the web address, an attacker could sneak extra instructions into the communication between Portainer and Docker, potentially taking control of the server. This is dangerous because it could let someone run their own code on the machine.

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 from Uber

View all

The newest disclosed reports for this program.

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.