A
A
Ainur Shakirov2016-07-24 17:58:58
PHP
Ainur Shakirov, 2016-07-24 17:58:58

What is the name of this (ahem .. strange) SESSION?

I came across one CMS'ka, there is this: And - this is a piece of SQL query. It is read from the session and added to the main request. Just the perfect hole for SQL injection, I thought, got into the chrome session, but there is only PHPSESSID. This entry doesn't exist. But she works. How so? Does the browser hide sessions with underscores, or are such records somehow stored only on the server side?
$_SESSION ['__var']='value';
value

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Popov, 2016-07-24
@Fqyeh29

Don't confuse sessions with cookies. The session files are stored on the PHP server, the browser only stores the session id. SQL cannot be fixed directly on the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question