Exploitation of the CVE-2018-15961 – Unrestricted File Upload in Adobe ColdFusion
An Adobe ColdFusion instance had default administrator credentials and an unrestricted file upload endpoint in its CKEditor file manager. An attacker could upload a JSP webshell and execute commands on the server, which ran with root privileges.
Amateur of bounty bugs and web application security for a few months already, I fell during my recognition phase on an exotic sub-domain, containing an Adobe ColdFusion instance. And why not play with it !
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 CKEditor file manager upload endpoint lacked authentication and file-type validation, allowing a JSP file to be written into a web-accessible directory.
Impact
An unauthenticated attacker could upload and execute a webshell, leading to remote command execution as root and full compromise of the server.
What the attacker needed
Network access to the ColdFusion instance; default admin credentials (for initial access); no authentication needed for upload
The fix
The text does not state a fix was applied; it recommends changing default credentials, patching promptly, and running the application with a restricted UNIX user.
How it was found
- Find the ColdFusion instance and log in with default administrator credentials.
- Send a crafted multipart POST request to the CKEditor file manager upload endpoint with a JSP webshell as the file.
- Access the uploaded webshell at its public URL.
- Run commands through the webshell, confirming root privileges.
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.
A file upload feature let anyone send a file to the server without checking what it was. The attacker sent a small program (a webshell) that the server then ran, giving them control of the machine. The server also ran as the all-powerful root user, so the attacker could do anything.
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.