Privilege Escalation In Ibm Spectrum Virtualize
The administrative web interface's RPC protocol allowed calling any public static Java method, so a low-privileged authenticated user could load a malicious shared library and gain code execution. Separately, SNMPv3 passwords were written unmasked to a world-readable CLI log file.
Published on certitude.consulting
Written by Wolfgang Ettlinger on 17.08.202317.08.2023
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 RPC endpoint failed to restrict which Java methods could be invoked, allowing any public static method to be called.
Impact
A low-privileged user could gain code execution on the storage system, and separately any system user could read the SNMPv3 authentication and privacy passwords from a log file.
What the attacker needed
Authenticated low-privileged user; ability to transfer a file via SCP
The fix
IBM issued updates addressing both issues.
How it was found
- Authenticate to the administrative web interface as a low-privileged user.
- Transfer a malicious shared library to /tmp/libtakeover.so using SCP.
- Send an RPC request that calls java.lang.System.load with the path to the library.
- The application server loads the library, leading to code execution.
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 web interface talks to the backend using a remote procedure call (RPC) system that lets the browser ask the server to run Java methods. The server did not check which methods were allowed, so a normal user could ask it to run dangerous ones like loading a file as code. Separately, passwords for the SNMP monitoring service were saved in plain text in a log file that every system user could read.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.