What the Login Page Gives Away
ChaiCorp is launching a new online shop. Before it goes live, the developer asks you for a quick check of the login page. You run curl -i against it and get the response below.
You do not need to attack anything. Just read the response headers carefully and answer the questions. Every answer is in the artifact.
HTTP/1.1 200 OK Date: Tue, 17 Nov 2026 09:14:22 GMT Server: Apache/2.4.49 (Ubuntu) X-Powered-By: PHP/7.4.3 Content-Type: text/html; charset=UTF-8 Set-Cookie: PHPSESSID=8f3a1c2e9b7d4f60a5e2c1d3b4a59687; path=/ Set-Cookie: remember_me=dXNlcj1hbGk7cm9sZT1jdXN0b21lcg%3D%3D; expires=Fri, 17-Nov-2028 09:14:22 GMT; path=/ X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Cache-Control: no-store, no-cache, must-revalidate Access-Control-Allow-Origin: * Content-Length: 4120 <!DOCTYPE html> <html lang="en"> <head><title>ChaiCorp Shop - Sign in</title></head> ...
Need help? Review: How Websites Work · Browser DevTools: Your First Hacking Tool · Lab: Become Admin
Q1. Which exact version of Apache does the server reveal?
Q2. Which header reveals the PHP version?
Q3. What is the name of the cookie that holds the login session?
Q4. Which protective flags are missing from the session cookie?
Q5. The remember_me cookie is Base64 that was then URL-encoded (%3D is =). Decode it. What role does it contain?
Q6. Which pair of important security headers is completely missing from this response?