Cryptographic Weakness Affecting showdoc/showdoc package, versions <2.9.8


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.14% (51st 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 IDSNYK-PHP-SHOWDOCSHOWDOC-1536575
  • published4 Aug 2021
  • disclosed4 Aug 2021
  • creditMichael Rowley

Introduced: 4 Aug 2021

CVE-2021-3678  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade showdoc/showdoc to version 2.9.8 or higher.

Overview

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

Affected versions of this package are vulnerable to Cryptographic Weakness. It computes a MD5 hash based on a string (rgrsfsrfsrf), the current time (time()), and a random number (rand()). The value returned by time() is an integer that records the seconds since epoch (1970), and the used string is static. This means that an attacker would either need to know when the generation of the MD5 hash occurred, or be able to brute-force it to break the hash. The rand() value is considered insecure as well. These three values lead to weak cryptography.

References

CVSS Scores

version 3.1