Answer the question
In order to leave comments, you need to log in
Can a site be hacked via $_SERVER['REQUEST_URI'] ?
Good afternoon!
I thought about this question. If the form says action="$_SERVER['REQUEST_URI']" or where in the href attribute of the tag , is it possible somehow to inject xss or...
Answer the question
In order to leave comments, you need to log in
It is possible if the data is not filtered.
The form
<form action="<?=$_SERVER['REQUEST_URI']?>">
...
</form>
<form action="http://host.com/form/"><script>alert('xss')</script><br class="demo">
...
</form>
in the form you can not specify at all, but leave the attribute empty. but the main thing is to be
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question