CVE-2024–3400 (Review)
A command injection vulnerability in PAN-OS GlobalProtect allowed an unauthenticated attacker to execute arbitrary code with root privileges by crafting a malicious SESSID cookie that performed path traversal and injected a shell command. The attacker could then run commands and exfiltrate data to an external host.
medium.com
Published on medium.com
Back on April 11th, 2024, Palo Alto Networks published guidance for a command injection vulnerability affecting PAN-OS versions 10.2, 11.0, and 11.1.
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 GlobalProtect feature improperly creates a file using the unsanitised SESSID cookie value, allowing path traversal and command injection.
Impact
An unauthenticated attacker could execute arbitrary code with root privileges on the firewall, potentially leading to full compromise and data exfiltration.
What the attacker needed
PAN-OS 10.2, 11.0, or 11.1; GlobalProtect gateway or portal enabled; No authentication required
How it was found
- The attacker sends a POST request to the GlobalProtect login endpoint with a crafted SESSID cookie.
- The cookie contains a path traversal sequence and a shell command that uses curl to contact an attacker-controlled host.
- The firewall processes the cookie and executes the command as root, exfiltrating the current username.
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.
This is a flaw in a firewall's login page that lets an attacker run commands on the device without logging in. The attacker sneaks a command into a cookie (a small piece of data your browser sends to a website) and the firewall mistakenly executes it with the highest permissions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.