Vulnerable-Web-Application/XSS/XSS_level4.php
Ömer Faruk Şenyayla 3687992f07
Update XSS_level4.php
2018-11-29 19:59:38 +03:00

22 lines
453 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<title>REFLECTED XSS 5</title>
<link rel="shortcut icon" href="../Resources/hmbct.png" />
</head>
<body>
<form method="GET" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
<p>Adınız:<input type="text" name="username"></p>
<input type="submit" name="Gönder">
</form>
<?php
if (isset($_GET["username"])) {
$user = str_replace("<", "", $_GET["username"]);
echo "$user";
}
?>
</body>
</html>