Unit 42 Finds Three Vulnerabilities in OpenLiteSpeed Web Server
Three vulnerabilities in OpenLiteSpeed and LiteSpeed Web Server could be chained by an attacker with admin dashboard credentials to achieve remote code execution and escalate privileges to root. A directory traversal flaw also allowed access to files in the web root directory.
Published on unit42.paloaltonetworks.com
The Unit 42 research team has researched and discovered three different vulnerabilities in the open source OpenLiteSpeed Web Server. These vulnerabilities also affect the enterprise version, LiteSpeed Web Server.
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 command injection existed because the External App Command field allowed specifying a command executed at server start, and the mitigations could be bypassed; the privilege escalation was due to a misconfigured PATH environment variable in the Docker image; the directory traversal was due to insufficient regular expression checks.
Impact
An attacker with admin dashboard credentials could chain the vulnerabilities to gain fully privileged remote code execution on the server, and the directory traversal could allow access to any file in the web root directory.
What the attacker needed
Credentials for the admin dashboard; Write access to /usr/local/bin (default in Docker)
How it was found
- Gain credentials to the admin dashboard (e.g., by brute force or social engineering).
- Exploit the command injection in the External App Command field to download and execute a malicious file as the user nobody.
- Exploit the PATH misconfiguration by placing a malicious binary in /usr/local/bin to escalate privileges to 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.
This report describes three security flaws in a popular web server. The most serious one lets someone who can log in to the server's admin panel run their own commands on the machine, and then trick the system into giving them full control. Another flaw lets an attacker peek at files they should not normally see.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.