r/Hacking_Tutorials • • 23m ago

Question 5 access.log lines. Which request would you investigate first?

You're reviewing a small web server's access log and spot these entries. One stands out.

192.0.2.45 - - [12/Oct/2024:14:22:01 +0000] "GET / HTTP/1.1" 200 1243 192.0.2.45 - - [12/Oct/2024:14:22:04 +0000] "GET /admin HTTP/1.1" 403 312 203.0.113.19 - - [12/Oct/2024:14:22:09 +0000] "GET /index.php?page=../../../../etc/passwd HTTP/1.1" 200 1847 203.0.113.19 - - [12/Oct/2024:14:22:11 +0000] "GET /login.php HTTP/1.1" 200 892 198.51.100.7 - - [12/Oct/2024:14:22:15 +0000] "POST /login.php HTTP/1.1" 302 0

Questions:

  1. Which IP and request would you look at first, and why?
  2. What does the successful 200 response on the long path suggest?
  3. Does the 403 on /admin mean the server is secure? Explain briefly.
  4. What would you check next (file contents, other logs, or something else)?

Bonus: Write the exact grep command that would pull every line containing the suspicious IP from a larger access.log file.

Post your reasoning. Beginners are welcome to answer just the first question.

1 Upvotes

0 comments sorted by