Vulnerable-Web-Application/XSS/XSS_level1.php

18 lines
386 B
PHP
Raw Normal View History

2018-11-27 20:35:39 +00:00
<!DOCTYPE html>
<html>
<head>
2018-11-27 20:52:20 +00:00
<title>XSS 1</title>
2018-11-29 16:59:31 +00:00
<link rel="shortcut icon" href="../Resources/hmbct.png" />
2018-11-27 20:35:39 +00:00
</head>
<body>
<form method="GET" action="" name="form">
2018-11-29 22:06:53 +00:00
<p>Your name:<input type="text" name="username"></p>
2018-11-29 23:33:58 +00:00
<input type="submit" name="submit" value="Submit">
2018-11-27 20:35:39 +00:00
</form>
<?php
if(isset($_GET["username"]))
2018-11-29 22:06:53 +00:00
echo("Your name is ".$_GET["username"])?>
2018-11-27 20:35:39 +00:00
</body>
</html>