CVE-2023-54422: iDocView < 13.10.1_20231115 Unrestricted File Upload RCE via /html/2word
iDocView before 13.10.120231115 contains an unrestricted file upload vulnerability in the /html/2word endpoint that allows unauthenticated attackers to write arbitrary files by supplying a malicious url parameter. Attackers can send a crafted GET request with the url parameter to download linked resources with an unsanitized path and unblocked .jsp extension, achieving remote code execution. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-11-22.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
iDocViewto a version that resolves this vulnerability.Fixed in 13.10.1_20231115
Event History
Frequently Asked Questions
Who can exploit this issue?
Unauthenticated remote attackers can exploit it over the network. No privileges or user interaction are required.
What does an attacker need to send?
The attacker needs to send a crafted GET request to the /html/2word endpoint with a malicious url parameter. The parameter can cause linked content to be downloaded using an unsanitized path, including a .jsp file extension.
Are systems running the affected versions exposed by default?
The available data identifies the /html/2word endpoint as the vulnerable attack surface, but does not state whether it is enabled or reachable in a default deployment. Systems should be assessed for network exposure of that endpoint.
How can I determine whether exploitation attempts may have occurred?
Review web access logs for crafted GET requests to /html/2word, especially requests containing the url parameter. Also investigate unexpected JSP files or other newly written files in locations served or executed by the application.
What is the immediate remediation?
Upgrade iDocView to 13.10.1_20231115 or later. If patching cannot happen immediately, restrict unauthenticated network access to /html/2word and monitor for suspicious requests and unexpected file creation.