writeups/lab-3-web-01.md
Lab 3.1, Patchline practice lab
Scanning web-01: three open services
Steps
- 1.Confirmed the host was up with
ping -c 4 10.10.0.5 - 2.Scanned for services and versions with
nmap -sV 10.10.0.5 - 3.Pulled the web server headers with
curl -I http://10.10.0.5
FindingMedium
MySQL (port 3306) answers from the network, and the web headers name the exact Apache and PHP versions. An attacker can match those versions to known flaws.
Fix
Bind MySQL to localhost or block 3306 at the firewall. Set ServerTokens Prod and turn off expose_php so the headers stop naming versions.