WhatsUp Gold Pre-Auth RCE GetFileWithoutZip Primitive (CVE-2024-4885)
An unauthenticated WCF endpoint in WhatsUp Gold exposed a recurring-report method whose export path was built from an attacker-controlled folder value without validation, allowing a path traversal. By steering the report output to a chosen directory and controlling the file extension, an attacker could write a file and achieve remote code execution.
Published on summoning.team
I discovered an unauthenticated path traversal against the latest version of progress whatsup gold and turned it into a pre-auth RCE, following is how I did it
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 export folder argument was passed straight into a path-building call without the validation applied to the report name, so the destination directory and resulting file extension were attacker-controlled.
Impact
An unauthenticated attacker could write a file to a chosen location and turn it into remote code execution, potentially exposing the stored credentials for managed machines, switches and routers.
What the attacker needed
Network access to the WCF service port; no credentials required
How it was found
- Reach the unauthenticated recurring-report WCF endpoint on the exposed port.
- Call the test-report method with a crafted report object.
- Set the export type to something other than pdf so the file-generation branch runs.
- Set the mail and zip options so the no-zip file writer is used.
- Supply a controlled export directory and a report payload that yields a dangerous extension.
- The service writes the generated file into the chosen folder.
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 software runs a background service that other programs can talk to over the network. One of its report-export features let the caller choose where the finished report file was saved, and it never checked that location. Because the caller could pick any folder and the file type, they could drop a file that the web server would later run as code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.