Digital Forensicsđ-[Ali Hadi â **Web Server Case #3**]
A web server was breached via SQL injection and cross-site scripting, allowing the attacker to upload PHP web shells and execute commands. The attacker also created suspicious accounts and attempted to enable RDP access.
Hey CyberDefenders, I surely we can learn a lot from Ali Hadiâs case, so bear with me till the end!
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 web application was vulnerable to SQL injection and cross-site scripting, allowing arbitrary file upload and command execution.
Impact
The attacker could execute commands, create accounts, and enable remote desktop access, but no evidence of lateral movement or data exfiltration was found.
What the attacker needed
Web application vulnerable to SQLi and XSS; attacker has network access to the web server
The fix
The text recommends implementing WAF rules, enabling comprehensive logging, deploying file integrity monitoring, and conducting threat modelling.
How it was found
- The attacker used SQL injection (via sqlmap) to enumerate the web application.
- The attacker used cross-site scripting to bypass security and upload PHP web shells.
- The attacker executed commands through the web shells, such as directory listing and file deletion.
- The attacker created user accounts 'hacker' and 'user1' and added 'user1' to the Remote Desktop Users group.
- The attacker modified firewall rules to allow RDP traffic.
- The attacker uploaded a PHP reverse shell to connect back to a specific IP and port.
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.
This is a digital forensics case study of a hacked web server. The attacker used common web attacks to break in and then left malicious files (web shells) that let them run commands on the server. Investigators examined disk and memory images to reconstruct what happened.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.