Vulnerable-Web-Application/XSS/XSS_level4.php
2018-11-29 00:25:41 +06:00

21 lines
394 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>
</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>