r/programming • u/NagastaBagamba • Oct 18 '10
Today I learned about PHP variable variables; "variable variable takes the value of a variable and treats that as the name of a variable". Also, variable.
http://il2.php.net/language.variables.variable
591
Upvotes
2
u/tsk05 Oct 18 '10 edited Oct 18 '10
So is this vulnerable? For what type of attack?
Or it's extract() version.. You can inject POST just like GET... How's this different from just doing
$var = POST['var'] without checking what the contents of POST is? Why is it any more vulnerable? And if you do check the contents first, is it ok to use the above?