1 Default Pages, Unnecessary Services, and File Permissions
Server misconfiguration is consistently one of the most common findings in security assessments. Many issues stem from not removing default configurations after installation.
Default pages:
GET / → "Welcome to Apache HTTP Server!" (still using default page)
GET /server-status → Apache server status page exposed (shows all connections, load, version)
GET /phpinfo.php → PHP configuration dump (shows all settings, extensions, paths)Unnecessary services:
- FTP on port 21 (use SFTP instead)
- Telnet on port 23 (use SSH)
- SMTP open relay on port 25
- Database ports (3306, 5432, 27017) exposed to the internet
- Redis on default port 6379 without auth (publicly writable!)
File permission issues:
-rw-rw-rw- 1 www-data www-data 4096 /var/www/html/config.php
# World-writable — any user on the system can modify config!
chmod 640 /var/www/html/config.php # Owner read/write, group read only
chown root:www-data /var/www/html/config.php