Skip to main content

Enumeration

Run Nmap Scan

View Website

Untitled

Enumerating Website Routes

Untitled

Routing to /administrator/

Untitled We see that the website is using Adobe ColdFusion 8. Let’s search the vulnerability

Exploitation

Searching ColdFusion Vulnerability

More information about the File Upload Vulnerability

CVE-2009-2265 Exploit Code

Disclaimer: I copied the code from the below link, but changed some of the code due to legacy problem (python2.7).

Reference: Where I Copied the Code

https://github.com/crypticdante/CVE-2009-2265

Generating Reverse Shell

Uploading the Reverse Shell Code to the Target Server

Listen to Reverse Shell and Exploit

Redirect to this link to execute the reverse shell http://<attacker ip>:8500/userfiles/file/exploit.jsp

Privilege Escalation

Printing out systeminfo

Copy the systeminfo result to systeminfo.txt inside the Attacker System. This is going to be used to detect the kernel vulnerability.

Installing wes-ng to find kernel vulnerability

Download the Exploit (CVE-2010-2554 | MS10-059)

https://github.com/egre55/windows-kernel-exploits/blob/master/MS10-059%3A Chimichurri/Compiled/Chimichurri.exe

Listen to Reverse Shell and Exploit