CVE-2021-1497: Cisco HyperFlex HX Auth Handling Remote Command Execution
The Cisco HyperFlex HX authentication handler builds a Python command using the user-supplied password without sanitisation, allowing an unauthenticated attacker to inject Python code and execute arbitrary OS commands as root.
zerodayinitiative.com
Published on zerodayinitiative.com
Cisco HyperFlex HX Data Platform is a high-performance, extensible distributed file system that supports multiple hypervisors with a wide range of enterprise-grade data management and optimization services. A remote code execution vulnerability has been reported in the product due to improper input sanitization.
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
The authentication handler fails to validate or escape the password parameter before embedding it in a Python command string, leading to Python code injection.
Impact
An unauthenticated attacker could execute arbitrary commands as the root user on the affected server.
What the attacker needed
Network access to the web console; no authentication required
The fix
Cisco patched the vulnerability in May 2021; the advisory states there are no workarounds, so affected customers should apply the vendor patch.
How it was found
- Send an HTTP request to the /auth/ endpoint of the Cisco HyperFlex HX server.
- Include a password parameter containing Python command injection characters.
- The server generates Python code that includes the injected value and executes it, running the attacker's command as root.
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.
The login page of this storage system passes the password you type into a command that runs Python code. Because it does not clean the password first, an attacker can type extra Python instructions instead of a real password. Those instructions then run on the server with the highest level of permission, letting the attacker take full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.