Cybersecurity · Penetration test
Penetration test of a Windows Server 2008 R2 host
Black-box penetration test of a Metasploitable 3 server: six validated accesses, full control at SYSTEM level, 69 vulnerabilities found and a prioritised remediation plan.
- 6 validated accesses, several at SYSTEM level
- 69 vulnerabilities found by Nessus, 15 critical and 22 high
- MS17-010 most critical flaw: immediate full compromise through SMBv1
Screenshots
Screenshots taken from the project report. Deliberately vulnerable lab machine, on an isolated virtual network.
What this project shows
The report does not stop at exploitation: each flaw is tied to a concrete fix (MS17-010 patch and SMBv1 disabled, authentication on Jenkins, password policy via GPO, MFA, prepared statements). The test was run only on a deliberately vulnerable lab machine.
Context, approach and architecture
Context
Scenario of a small consulting firm whose main server has been maintained for three years by successive contractors, with no dedicated administrator. The target is a Metasploitable 3 lab machine (Windows Server 2008 R2), tested black-box: only its IP address is known at the start. Goals: map the attack surface, validate at least two remote code executions, reach SYSTEM level and audit credentials.
Approach
-
Full reconnaissance with Nmap (65,535 TCP ports, version detection, NSE scripts): around fifteen exposed services, including several development tools never secured.
-
Exploitation with Metasploit: EternalBlue on SMBv1 (MS17-010) up to NT AUTHORITY\SYSTEM, code execution through Elasticsearch, ManageEngine, the Jenkins console, WebDAV and GlassFish.
-
Credential audit: default passwords, dictionary attack with Hydra, SQL injection on the payroll app, MySQL reachable without a password.
-
Unauthenticated Nessus scan for the full inventory, then for each flaw: mechanism, proof of access and fix.
Architecture
- Parrot OS
- attacker machine
- Windows Server 2008 R2
- Metasploitable 3 target
- SMB, HTTP, Java
- exposed services exploited
- Nessus
- vulnerability inventory