<!DOCTYPE html><!--STATUS OK--><html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script>
window.alert = function()
{
confirm("完成的不错!");
window.location.href="level8.php?keyword=nice try!";
}
</script>
<title>欢迎来到level7</title>
</head>
<body>
<h1 align=center>欢迎来到level7</h1>
<h2 align=center>没有找到和move up!相关的结果.</h2><center>
<form action=level7.php method=GET>
<input name=keyword value="move up!">
<input type=submit name=submit value=搜索 />
</form>
</center><center><img src=level7.png></center>
<h3 align=center>payload的长度:8</h3></body>
</html>
先看原页面

发现又是一个输入框,联想到前几关的通关,都给了输入框,不妨试一试!把不能用的东西给过滤掉。
http://192.168.199.153/xss/level7.php?keyword=a <> alert() href script onclick &submit=搜索

<input name=keyword value="alert() ' " <> click a ">
onclick给过滤了 , href给过滤了, script 也没了。现在剩下的就alert了。给它复写一个,成功。


浙公网安备 33010602011771号