I decided to understand the essence and mechanism of xss. I wrote a simple html:
<html> <head> <title> xss </title> </head> <body> <H1> test </H1> <br /> <?php echo $_GET['in']; ?> </body> </html> If I refer to him as
.../index.php?in=string then output the string I transmitted, but if I try to write a script
.../index.php?in=<script>alert('xss here')</script> then nothing happens.
What am I doing wrong?
PS: JavaScript is enabled in the browser
echo $_GET['in'];appears? - edem