Create XSS_level4.php
This commit is contained in:
parent
8fe4c54f81
commit
4b8ee90637
22
XSS/XSS_level4.php
Normal file
22
XSS/XSS_level4.php
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>XSS 4</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form method="GET" action="" name="form">
|
||||||
|
<p>Your name:<input type="text" name="username"></p>
|
||||||
|
<input type="submit" name="Gönder">
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
|
if (isset($_GET["username"])) {
|
||||||
|
$values = array("script", "prompt", "alert", "h1");
|
||||||
|
|
||||||
|
$user = str_replace($values, " ",$_GET["username"]);
|
||||||
|
echo "$user";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user