Skip to content
Path traversal Write-up Intermediate

Arbitrary File Creation Leads to OS Command Injection

The GlobalProtect portal is vulnerable to path traversal combined with command injection, allowing an unauthenticated attacker to create arbitrary files and execute commands on the firewall OS. The report shows file creation via crafted HTTP requests, but does not demonstrate command execution.

medium.com

Published on medium.com

is a path traversal + command injection vulnerability in GlobalProtect portal. An attacker can exploit this by sending specially crafted HTTP requests to the vulnerable GlobalProtect interface.

Ahmed Badry, on 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

Likely the GlobalProtect portal fails to properly sanitise user-supplied file paths, allowing directory traversal and subsequent file creation.

Impact

An unauthenticated attacker could create arbitrary files on the firewall OS and potentially execute commands, though command execution is not demonstrated.

What the attacker needed

Access to the GlobalProtect portal; no authentication required

How it was found

  1. Send a crafted HTTP request to the GlobalProtect interface.
  2. Observe a 404 response initially.
  3. Modify the request to include a path traversal sequence.
  4. Observe the status code change from 404 to 403, indicating successful file creation.

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 report describes a flaw in a firewall's login portal that lets an attacker trick the server into writing files anywhere it wants. The author claims this can also lead to running commands on the device, but only shows the file creation part. The steps are mostly shown in images, so the exact method is not fully explained in text.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.