PHP Session Hijacking Lab
Controlled lab only. This plugin uses a PHP session as the lab authentication state so students can observe session-ID behavior.
This is a separate training mechanism. It does not log the browser into WordPress’s normal wp-admin/account session.
Current Server-Side Session
| Session name | PHPSESSID |
| Server sees session ID | 0am0p4g33r1mpd1db6hcic0cku |
| Authenticated | NO |
| Lab user | Anonymous |
| Cookie sent by browser | 0am0p4g33r1mpd1db6hcic0cku |
1. Lab Login
3. Controlled Exercise
- Use two isolated browser profiles, A and B.
- In A, log in and record the PHPSESSID shown above.
- In B, set its
PHPSESSIDcookie to the existing session ID from A. - Reload the lab page in B.
- In vulnerable mode, the server should load the same server-side session and therefore display the same lab profile.
- In secure mode, authentication rotates the session ID, so the old identifier no longer represents the newly authenticated session.
Important diagnostic: compare “Cookie sent by browser” with “Server sees session ID”. They should be identical after reload. If they differ, the browser is not sending the cookie you edited.