Kingdee ERP Zero-Day? ScpSupRegHandler File Upload Exploit Explai
The ScpSupRegHandler module in Kingdee Cloud Galaxy failed to properly validate uploaded file types and sanitise file paths, allowing directory traversal. An attacker could upload a malicious file (such as a JSP webshell) to a web-accessible directory and execute arbitrary commands, potentially gaining full control of the server.
Published on medium.com
In November 2023, security researchers publicly disclosed a critical arbitrary file upload vulnerability in its ScpSupRegHandler module.
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 upload handler did not validate file extensions and did not sanitise path traversal sequences in the filename, allowing files to be written outside the intended directory.
Impact
If exploited successfully, attackers could upload files anywhere on the server, deploy webshells, tamper with files, gain remote code execution, and pivot further into the network.
What the attacker needed
Access to the ScpSupRegHandler endpoint; Ability to send HTTP POST requests
The fix
The vulnerability was fixed by upgrading to the patched version provided by Kingdee.
How it was found
- Upload a malicious file via the vulnerable ScpSupRegHandler endpoint
- Access the uploaded file via browser to execute commands on the server
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 file upload vulnerability. The application lets users upload files but does not check what kind of file it is or where it is saved. An attacker can upload a harmful script and then run it on the server, taking over the system.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.