PHP Session Poisoning
Most PHP web applications utilize PHPSESSID
cookies, which can hold specific user-related data on the back-end, so the web application can keep track of user details through their cookies. These details are stored in session
files on the back-end, and saved in /var/lib/php/sessions/
on Linux and in C:\Windows\Temp\
on Windows. The name of the file that contains our user's data matches the name of our PHPSESSID
cookie with the sess_
prefix. For example, if the PHPSESSID
cookie is set to el4ukv0kqbvoirg7nkp4dncpk3
, then its location on disk would be /var/lib/php/sessions/sess_el4ukv0kqbvoirg7nkp4dncpk3
.
Last updated