Skip to content
Path traversal Advisory Intermediate

(0Day) Hewlett Packard Enterprise Moonshot Provisioning Manager khuploadfile Directory Traversal Remote Code Execution Vulnerability

The khuploadfile.cgi binary in HPE Moonshot Provisioning Manager fails to validate a user-supplied path before using it in file operations, allowing an unauthenticated remote attacker to create arbitrary files. This can be leveraged to execute code as root.

Erik de Jong Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to create arbitrary files on affected installations of Hewlett Packard Enterprise Moonshot Provisioning Manager. Authentication is not required to exploit this vulnerability.

Erik de Jong, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the khuploadfile.cgi binary does not sanitise the file path provided by the user, allowing directory traversal.

Impact

An unauthenticated remote attacker could create arbitrary files and execute code with root privileges.

What the attacker needed

Network access to the application

The fix

The product is end of life and no patch is available; the only mitigation is to restrict interaction with the application.

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 report has not been written yet. The Original tab links to the source.

A file upload feature in the software does not check where files are being saved. An attacker can trick it into saving a file anywhere on the system, including places where it will be run as a program. Because the attacker does not need to log in, this is very dangerous.

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 Erik de Jong

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.