Skip to main content

Enumeration

Run Nmap Scan

View Website

Untitled

Directory Bruteforcing (Run Gobuster)

When you find the route aspnet_client , we should always check if the server is vulnerable to short filename enumeration and WebDAV File Upload vulnerability.

IIS Enumeration

Short filename enumeration using Shortscan

Install the file https://github.com/bitquark/shortscan Use the latest go to install the file
Run shortscan
Untitled There’s not much additional information we found using iis short filename enumeration

Testing WebDAV File Upload Vulnerability (Failed)

File Upload vulnerability has been patched here.

Exploitation

Checking IIS Exploit

We found some interesting exploit related to IIS 6.0. Using RCE, we can potentially gain the shell. Microsoft IIS 6.0 - WebDAV ‘ScStoragePathFromUrl’ Remote Buffer Overflow
Generating the shell code to gain the reverse shell.
Copy the reverse shell code and swap it with the buf variable
Unfortuately the exploit will not work, I found the same exploit but from different user https://github.com/crypticdante/CVE-2017-7269.git

Listen to Reverse Shell and Exploit

Privilege Escalation

Using Kernel Exploit

Getting Systeminfo and Saving the file as systeminfo.txt

Install and execute wes-ng

Search for Privilege Escalation Kernel Exploit

Download the Exploit (MS09-012)

Microsoft Windows Server 2003 - Token Kidnapping Local Privilege Escalation Unfortunately all the link to the file expired.

Finding the same exploit

https://github.com/Re4son/Churrasco/

Uploading the Exploit to the Target System

When using certutil -urlcache -f the execution fails.
Looking at CertUtil help menu, we can add -split to save the file
Download the file
After the download, the filename will look quite strange.. If you execute the file, you will know that is the exploit.
Change the filename

Exploit

Using -d we are specifying what to execute in administrator mode. Since we are trying to get the administrator privilege, we are going to execute cmd

Reference