Skip to content
Path traversal Write-up Advanced

1-Line curl to steal your unexposed secret creds Escaping Protect

A path traversal using semicolon path parameters let a request escape the intended public API route on an API gateway and reach internal paths such as a configuration file and a Tomcat manager console. The author claims this could expose secret credentials and, with them, allow deploying a malicious WAR for remote code execution.

gregk4sec Follow

Published on medium.com

This issue has been closed in 2025, here is the concept — after disclosure of Oracle CVE-2026–21962.

gregk4sec with k4security Lab, 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 gateway normalises or strips semicolon path parameters after routing, so the forwarded path differs from the path used for authorisation, allowing traversal to internal endpoints.

Impact

The author claims secret credentials could be read and, if valid for the manager console, used to deploy a malicious WAR leading to remote code execution; the text does not show the actual responses, so this is unproven.

What the attacker needed

Network access to the gateway; gateway forwards semicolon paths

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.

Web servers sometimes treat a semicolon and extra text in a URL path as a parameter and ignore it when deciding which route to serve. By stacking these, a request meant for a harmless public endpoint can be made to point at a different internal path, such as a settings file or an admin page. The author says this could leak passwords and even allow uploading a malicious program.

What is Path traversal?

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

More by gregk4sec

View all

2 more disclosed reports, best first.

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.