r/Hacking_Tutorials • u/Royalspleasurez • 12m ago
Question Apache error.log triage: Which entry would you investigate first during a compromise assessment?
Reviewing a small web server's Apache error.log, these five lines appear in a tight window. One feels like it could indicate active exploitation rather than routine noise.
[Mon Oct 14 09:41:12 2024] [error] [client 203.0.113.19] File does not exist: /var/www/html/wp-login.php [Mon Oct 14 09:41:15 2024] [error] [client 198.51.100.7] PHP Warning: include(/var/www/html/../../../etc/passwd): failed to open stream [Mon Oct 14 09:41:18 2024] [error] [client 192.0.2.45] script '/var/www/html/admin/config.php' not found or unable to stat [Mon Oct 14 09:41:22 2024] [error] [client 203.0.113.19] PHP Fatal error: Uncaught Error: Call to undefined function system() in /var/www/html/upload.php [Mon Oct 14 09:41:25 2024] [error] [client 198.51.100.7] File does not exist: /var/www/html/.env
Questions for discussion:
- Which line would you examine first and why?
- What does the successful path traversal attempt (even if it errored) suggest about the application?
- Would the PHP fatal error on upload.php change your priority?
- What would you check next access.log for the same IPs, file timestamps, or process listings?
Bonus: Write the exact grep or awk one-liner that would extract every line containing a path traversal pattern (../) from a larger error.log.
Beginners welcome just answer the first question with your reasoning.