PHP session
When a web server wants to handle sessions, it can use PHP session cookies (PHPSESSID
).
Finding where the sessions are stored.
Examples:
Linux :
/var/lib/php5/sess_[PHPSESSID]
Linux :
/var/lib/php/sessions/sess_[PHPSESSID]
Windows :
C:\Windows\Temp\
Displaying a
PHPSESSID
to see if any parameter is reflected inside.Example:
The user name for the session (from a parameter called
user
)The language used by the user (from a parameter called
lang
)
Exemple :
3. Inject some PHP code in the reflected parameter in the session
4. Call the session file
with the vulnerable parameter to trigger a command exection
Last updated
Was this helpful?