|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
Avoiding the PHP_SELF ExploitSimply escape the variable like this: $x = htmlentities($_SERVER['PHP_SELF'])
Example application: <form name="MyForm" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
Last edited by Russ; 12/02/19 06:33 PM.
|
|
|
|
|