Skip to content
RCE Write-up Advanced

Attacking Next-Generation Firewalls

An unauthenticated API on the management website of a Palo Alto Networks PA-500 firewall contained an off-by-one command injection flaw. An attacker able to reach the admin network could exploit it by sending a crafted request to that API.

insinuator.net

Published on insinuator.net

Felix Wilhelm presented in his talk various ways to attack his new target – The PA-500 which is produced by Palo Alto Networks.

The author, on insinuator.net

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 an off-by-one error in how the API handled input, allowing injected commands to be executed.

Impact

An attacker with access to the admin network could run commands on the firewall, though the exploit was limited to that network.

What the attacker needed

Access to the admin network

How it was found

  1. Reach the management website from within the admin network.
  2. Send a request to the unauthenticated API using a special client parameter.

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.

A firewall is a device that guards a network, and its management website is where administrators configure it. Command injection means the attacker can sneak extra operating-system commands into a request the website processes, so the device runs them. Here the flaw was reachable without logging in, but only from the restricted admin network.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.