[CVE-2020-15492] INNEO Startup Tools 2017/2018 - From Path Traversal to RCE
The INNEO Startup Tools web server on port 85 is vulnerable to path traversal, allowing an attacker to read and write files outside the intended directory. By combining this with log poisoning and a null-byte injection in PHP 5.2.13, an unauthenticated attacker can achieve remote code execution as the SYSTEM user.
hesec.de
Published on hesec.de
The manufacturer describes the product as follows (Link to vendor product page):
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 web server fails to sanitise user-supplied file paths, allowing directory traversal, and also uses an outdated PHP version with a null-byte injection flaw.
Impact
An unauthenticated attacker could execute arbitrary code with the highest system privileges (nt-authority\system), leading to full compromise of the server.
What the attacker needed
Network access to port 85; No authentication required
The fix
The manufacturer provided a solution; users should upgrade to the next higher major version.
How it was found
- Discover the path traversal vulnerability in the web server on port 85.
- Find the LOG folder and read sut_server.log to obtain the hostname.
- Poison the log file sut_server_<hostname>.log with PHP code using multiple lines to avoid length limits.
- Use a null-byte injection to make the server execute the poisoned log file as PHP.
- Execute arbitrary commands or a reverse shell as nt-authority\system.
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 software runs a small web server that lets users access files. Because it does not check the file paths properly, an attacker can use special characters to reach files outside the intended folder. The attacker then writes malicious code into a log file and tricks the server into running it, taking full control of the machine.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.