Penetration test report for the VulnHub DC-1 lab: nmap enumeration, Drupalgeddon SQL injection, SUID find privilege escalation, John the Ripper hash cracking, and SSH lateral movement.
Vulnhub DC1 Penetration Test Report
Tester: Mohamed Koko
Date: December 2026
Target: Vulnhub DC1
Engagement Type: Full Infrastructure Penetration Test — Lab Environment
Scope of engagement: Target: vulnhub DC1’s virtual machine with IP address being 192.168.122.131. Full infrastructure engagement. No denial of service testing performed. Lab environment only.
Port scanning:
Sudo nmap -p- 192.168.122.131
Open ports are: 22/ tcp - ssh 80/ tcp/udp - http 111/ tcp - rpcbind 58694/ tcp - status program #100024
Further investigate all ports using code nmap -sS -sU -p -sV 192.168.122.131 to figure out their version and plan the attack accordingly on each port if applicable.
Port 22 runs SSH, version OpenSSH 6.0p1 Debian 4+deb7u7 (protocol 2.0). This version has no known remote code execution vector, but per CVE-2016-10708 it is vulnerable to a remotely triggered denial-of-service (a crafted sequence of messages can crash the SSH daemon). The software is also outdated, so an upgrade is recommended.
Finding details:
Finding: Outdated OpenSSH service vulnerable to denial-of-service (CVE-2016-10708)
Severity: Low
Impact: No unauthorized access or code execution is possible through this flaw. An unauthenticated attacker could crash the SSH service, disrupting remote administrative access (an availability issue). The outdated version may also lack later security hardening.
Result: Port 22 confirmed open; OpenSSH 6.0p1 identified via version enumeration. No exploitation attempted (no DoS testing per scope).
Additional risk: Running end-of-life software increases exposure to future disclosed vulnerabilities that will not receive patches.
Remediation: Upgrade OpenSSH to a current supported release. Restrict SSH access to trusted hosts/management networks via firewall rules, enforce key-based authentication, and disable password login where possible.
Port 80 runs HTTP, version Apache httpd 2.2.22 (Debian). This release is end-of-life and no longer receives security updates. No remote code execution vector was identified in this version, but running unsupported web server software exposes the host to later disclosed Apache 2.2.x vulnerabilities that will never be patched. An upgrade to a current supported release is recommended.
Finding: End-of-life Apache HTTP Server (2.2.22)
Severity: Low
Impact: No direct unauthorized access or code execution confirmed. The risk is running unsupported software: newly discovered flaws receive no patches, increasing long-term exposure.
Result: Port 80 open; Apache 2.2.22 identified via banner/version enumeration. This is the web server hosting the vulnerable Drupal CMS (see the critical finding).
Additional risk: Serves as the platform for the Drupalgeddon entry point; an outdated stack compounds that exposure.
Remediation: Upgrade Apache to a current supported version and establish a patch-management process. Remove version banners (ServerTokens Prod, ServerSignature Off) to reduce information leakage.
Port 111 is open on both TCP and UDP, running rpcbind (RPC program #100000, protocol versions 2–4). No RCE vector exists, but rpcbind of this era is affected by CVE-2017-8779 ("rpcbomb"), a memory-exhaustion DoS triggered by a crafted UDP packet to port 111. The exact package version was not fingerprinted, so this is indicative; restricting or upgrading the service is recommended.
Finding: rpcbind exposed and likely vulnerable to rpcbomb DoS (CVE-2017-8779)
Severity: Low
Impact: No unauthorized access or code execution. An unauthenticated remote attacker could exhaust memory and crash the service or impact the host (availability only). CVSS v2.0 base score 7.8 reflects that availability impact; rated Low here because scope excluded DoS testing and impact is confined to availability. ptsecurity
Result: Ports 111/TCP and 111/UDP open; rpcbind identified. RPC package version not confirmed, so vulnerability is inferred from the host's age, not proven.
Additional risk: rpcbind also exposes the dynamically-assigned rpc.statd high port (see port 54358 finding), widening the RPC attack surface and complicating firewalling.
Remediation: Restrict port 111 (TCP/UDP) to trusted hosts via firewall, or disable rpcbind/RPC services if NFS is not required. Patch rpcbind and libtirpc to current versions.
Port 54358 runs rpc.statd (the "status" service, RPC program #100024), a dynamically-assigned high port registered through rpcbind. No confirmed RCE vector exists for this version.
Finding: rpc.statd exposed on a dynamic high port (RPC #100024)
Severity: Informational / Low
Impact: No unauthorized access or code execution identified for this version. The service contributes to the overall RPC/NFS attack surface and, like rpcbind, carries general availability (DoS) exposure for software of this age.
Result: Port 54358 open; rpc.statd (status, program #100024) identified via version enumeration. Registered through rpcbind on port 111. No exploitation attempted.
Additional risk: Because the port is assigned dynamically by rpcbind rather than fixed, it is harder to firewall reliably, which is itself a reason to lock down rpcbind on port 111.
Remediation: Restrict or disable RPC/NFS services if not required. Where NFS is needed, pin statd to a fixed port and firewall RPC services to trusted hosts. Keep the OS and NFS utilities patched.
SQL Injection
Browsed to http://192.168.122.131 and identified a "Powered by Drupal" reference on the page, confirming the CMS in use. The exact Drupal version could not be determined, as the version-disclosure files were not accessible.
Used msfconsole to run "search drupal" and enumerate available exploit modules. Applied a trial-and-error approach, loading each candidate module and running its check function, to identify the module effective against the target's Drupal version.
Steps are:
Use
Set RHOSTS 192.168.122.131
Check
Run (if vulnerable)