iDocView RCE Vulnerability: How a Simple URL Leads to Remote Code
The iDocView document preview endpoint accepted external URLs without proper validation, allowing an attacker to make the server download and execute arbitrary files. This could lead to remote code execution and full server compromise.
In November 2023, the iDocView team released a security patch addressing a high-risk RCE vulnerability in its document preview feature (/html/2word). The root cause?
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 remote page caching feature failed to validate external URLs, allowing the server to fetch and execute attacker-supplied files.
Impact
An attacker could gain remote control of the server, leading to data breaches and further lateral movement inside the network.
What the attacker needed
Access to the vulnerable endpoint; ability to host a malicious file
The fix
The vulnerability was fixed by upgrading to version 13.10.1_20231115 or later.
How it was found
- Send a crafted request to the vulnerable endpoint with a URL hosting a malicious file.
- The server downloads the file.
- The server processes the file.
- The server returns a predictable response.
- The server executes attacker-controlled commands.
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.
iDocView is a service that lets you view documents online. A part of it fetched web pages from any address a user gave it, without checking whether that address was safe. An attacker could point it at a file they controlled, and the server would download and run it, giving the attacker control of the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.