Feng Office 版本:1.7.4
/public/assets/javascript/slimey/save.php 存在反射形XSS漏洞
### 主要代码:
```php
<h1>This is what the server gets:</h1>
Filename: <input type="text" value="<?php echo $_POST['filename'] ?>" />
<br /><br />
Slim Content:<br />
<textarea rows="2" cols="80"><?php
echo $_POST['slimContent'];
?></textarea>
<br /><br />
Unescaped Slim Content:<br />
<textarea rows="5" cols="80"><?php
echo unescapeSLIM(unescapeSLIM($_POST['slimContent']));
?></textarea>
```
有两处像`<?php echo $_POST['filename'] ?>`直接echo Post数据,没有经过任何过滤,造成XSS。构造`><script>alert(/sebug/)</script>`输入并post提交可造成反射型XSS。
暂无评论