So, I just found some super-disturbing code at the same time in some classic ASP code, as well as in PHP.
Classic ASP:
Dim id id = request.form("id") Session(id) = id
Php
$_SESSION[$_GET["id"]] = $_GET["id"];
So what could go wrong here? Notice that I will delete them and using the best workflow.
EDIT: The obvious problems could be SQLi, XSS, overwriting existing and required session variables. I really don't know how these languages ββwork when working with these languages.
EDIT 2: I am not interested in the values ββof the session variable, as far as I am concerned that I can name them. Just curious if there is anything crazy you could do with arbitrary variable names.
source share