Compromising HP SAN appliances
The HP P4000 SAN appliance's Centralized Management Console daemon contained a pre-authentication stack buffer overflow in password parsing and a hardcoded magic password that worked for every account. An attacker could use the hardcoded password to gain application-level access, then exploit a command injection in the ping feature to execute arbitrary commands and fully compromise the SAN, accessing all stored data.
Published on agarri.fr
In November 2011, HP published an advisory regarding their "HP StorageWorks P4000 Virtual SAN Appliance". However, these vulnerabilities are located in the "Centralized Management Console" (CMC) daemon which is used in the full "P4000 G2 SAN" range of products (including the P4300, P4500 and P4800 physical SAN…
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 root cause is a combination of a hardcoded backdoor password and missing input sanitisation in the ping command handler, plus a stack buffer overflow from unchecked sscanf parsing.
Impact
An attacker could fully compromise the SAN appliance, gaining unauthorised access to every data stored inside, including NTLM hashes, configuration files, and raw database files.
What the attacker needed
Network access to the appliance on TCP/1383; knowledge of the hardcoded password
The fix
The vulnerabilities were fixed in a later version (696_10537) according to the text, though it says 'probably safe but untested'.
How it was found
- Create administration traffic using the Windows client on port TCP/1383 and sniff it.
- Reverse the protocol and identify the XOR encoding and key.
- Send a login request with the hardcoded password to gain application-level access.
- Use the 'Check connectivity' ping feature with a command injection payload to execute commands.
- Connect to the bound shell on port 12345 to gain OS-level access.
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 security holes in a storage device that holds backups and databases. One hole let someone log in with a secret password that works for every account, and another let them run their own commands on the device. Together, an attacker could read or steal all the data stored on the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.