Nokia vBMC — BMC Log Scanner Remote Code Execution
The BMC Log Scanner web application is vulnerable to command injection in the Search Pattern field, allowing unauthenticated remote code execution as the root user. An attacker could execute arbitrary commands, including obtaining a reverse shell with root privileges.
Published on mattchew-gregory.medium.com
The BMC Log Scanner web application, available on several hosts, is vulnerable to command injection attacks, allowing for unauthenticated remote code execution. This vulnerability is especially significant because this service runs as root.
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 application fails to sanitise user input in the Search Pattern field before passing it to a system command, allowing command injection.
Impact
An unauthenticated attacker could execute arbitrary commands as root, potentially leading to full system compromise and reverse shell access.
What the attacker needed
Access to the BMC Log Scanner web interface; no authentication required
The fix
The application should sanitise all user input and run services with least privilege, not as root.
How it was found
- Enter the command injection string in the Search Pattern field of the BMC Log Scanner GUI.
- Confirm root access by running the id command or reading /etc/shadow.
- From a DB host, enter the same injection string; commands run on both APP servers simultaneously.
- To obtain a reverse shell, write a Python listener script and a connector script, store them on a Pilot host.
- Start the listener and a Python web server on the Pilot host.
- Enter a command injection that downloads and runs the connector script, causing the APP server to connect back to the listener.
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 a flaw where a web page that searches logs lets someone type special characters that trick the server into running system commands. Because the service runs with the highest level of permission (root), an attacker can take full control of the machine without logging in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.