Skip to content
File upload Write-up Beginner

Chasing The Hackers A Network Forensics Investigation

A web server was compromised through an unrestricted file upload on an ASP.NET page, allowing the attacker to upload a web shell. The attacker then used the shell to download and execute a reverse shell, gaining full command-line access to the server.

ParagBagul Follow

Published on systemweakness.com

In this blog, I will be diving deep into the Chase challenge, a network forensic challenge where we uncover the hackers’ trail and gain insight into their tactics.

ParagBagul, on systemweakness.com

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

Impact

The attacker gained full command-line access to the web server, allowing them to execute arbitrary commands and download further tools.

What the attacker needed

Network access to the web server; upload page accessible

How it was found

  1. The attacker sent a GET request to /upload.aspx, indicating a file upload feature.
  2. The attacker sent a POST request to /upload.aspx with a multipart form containing a file named cmd.aspx, which was a web shell.
  3. The server responded with 200 OK and 'File uploaded', confirming the upload.
  4. The attacker accessed the uploaded web shell via a GET request to /cmd.aspx.
  5. The attacker sent a POST request to /cmd.aspx with a command to download nc64.exe using certutil.
  6. The attacker sent another POST request to /cmd.aspx to execute nc.exe with a reverse shell command.

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 web shell is a malicious script that an attacker uploads to a website to run commands on the server. Here, the upload page did not check what kind of file was being uploaded, so the attacker could upload a script that let them control the server. They then used it to download a tool that gave them a remote command prompt.

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.

More by ParagBagul

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.