I working out to remove special characters in passing parameters through an URL in case to avoid injection by intruders, for example I had the URL below:
www.sitename.com/people?job=manager
I added an alert
script after the parameter like below:
www.sitename.com/people?job=manager"/><script>alert%2844749%29<%2fscript>
when I run the URL, the alert
will popup, this might cause vulnerability in retrieve site information by this technique. I will use $_REQUEST
to get the passing parameter to generate results. Is that any cure to escape URL injection techniques which I can apply to below?
$job = $_REQUEST["job"];
Thanks for advise.