Complex Attack Types: Sample Scenarios 41
The report describes a penetration test where an attacker exploited a DNS zone transfer to discover internal hosts, brute-forced an admin login, and used an SSRF vulnerability in a URL parameter to achieve remote code execution on a Windows server. The attacker then escalated privileges and extracted password hashes.
In this article of the series, we will infiltrate the opposing system using our intelligence and penetration abilities and explain every attack we perform in the lab environment. This article will allow you to improve your penetration abilities in many ways.
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
An attacker could execute arbitrary commands on the server, leading to full system compromise and access to sensitive password hashes.
What the attacker needed
Network access to the target; weak admin credentials; SSRF vulnerability in the web app
How it was found
- Perform a DNS zone transfer to discover additional domains.
- Brute-force the admin login page to obtain credentials.
- Log in to the admin panel and identify a URL parameter that accepts a remote address.
- Test the parameter with an external URL and observe that the server fetches it.
- Use the parameter to access an internal host and execute a command via a PHP script.
- Escalate privileges and dump password hashes.
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 walkthrough of a hacking lab. The attacker found a way to make the server fetch any web address they chose, which let them run commands on the machine. They also guessed a weak password to get into an admin panel.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.