RCE via Path Traversal vulnerability in Onlyoffice CommunityServer < 12.5.2 (CVE-2023-34939)
The UploadProgress.ashx component in Onlyoffice CommunityServer allowed unauthenticated attackers to upload files with path traversal sequences, writing them to the web root. This could lead to remote code execution by uploading a malicious ASPX shell.
Published on github.com
History
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 UploadProgress.ashx handler did not properly validate the filename in the multipart upload, allowing directory traversal sequences to write files to arbitrary locations.
Impact
An unauthenticated attacker could execute arbitrary code on the server, leading to full compromise.
What the attacker needed
A thread in the forum module; no authentication required
The fix
The vulnerability was fixed in Onlyoffice CommunityServer v12.5.2.
How it was found
- Create a thread in the forum module.
- Send a POST request to /UploadProgress.ashx with a multipart form containing a file whose filename includes path traversal sequences.
- The file is written to the web root directory, allowing execution of the uploaded ASPX shell.
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 is a flaw in a file upload feature. An attacker can send a request that tricks the server into saving a file outside the intended folder, placing it directly in the website's root directory. Because the file is a script that the server can execute, the attacker can run their own code on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.