GHSA-5mj6-3cmq-fh34 CVE-2022-0079
showdoc is vulnerable to Generation of Error Message Containing Sensitive Information
- Severity
- 5.3 / 10
- Medium · CVSS 3.0
- Exploit chance (EPSS)
- 1.00%
- Chance of exploitation in the next 30 days. Higher than 62.88% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-209 Generation of Error Message Containing Sensitive Information
- Fix
2.10.0- Upgrade showdoc/showdoc to this version or later
Description
showdoc is vulnerable to Generation of Error Message Containing Sensitive Information
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| showdoc/showdoc | < 2.10.0 |
2.10.0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
showdoc/showdoc Packagist → 2.10.0
- composer
composer require showdoc/showdoc:^2.10.0
Severity breakdown
CVSS 3.0 5.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Weakness
CWE-209: Generation of Error Message Containing Sensitive Information
The product generates an error message that includes sensitive information about its environment, users, or associated data.
How to prevent it
- Implementation: Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success. If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files. Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.
- Implementation: Handle exceptions internally and do not display errors containing potentially sensitive information to a user.
- Implementation: Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
- Implementation, Build and Compilation: Debugging information should not make its way into a production release.
- Implementation, Build and Compilation: Debugging information should not make its way into a production release.
- System Configuration: Where available, configure the environment to use less verbose error messages. For example, in PHP, disable the display_errors setting during configuration, or at runtime using the error_reporting() function.
- System Configuration: Create default error pages or messages that do not leak any information.
References
Advisories
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-fm5r-cj7v-rj2c ShowDoc has an Injection vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-6jmr-r7p6-f5wr ShowDoc unrestricted file upload vulnerability | Critical | Also affects showdoc/showdoc |
| GHSA-2263-jwgm-wv97 Showdoc XSS Vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-6xx7-cphv-pxgr Showdoc Forced Browsing | Medium | Also affects showdoc/showdoc |
| GHSA-3p87-gqw8-4pf2 Showdoc CSRF Vulnerability | Medium | Also affects showdoc/showdoc |
| GHSA-pfrc-5hhq-6hvr Showdoc Unauthenticated Access | Medium | Also affects showdoc/showdoc |
| GHSA-xp82-jmw8-mjxp Unrestricted Upload of File with Dangerous Type in ShowDoc | High | Also affects showdoc/showdoc |
| GHSA-vpwq-6cp4-ffqc Stored Cross-site Scripting in ShowDoc | Medium | Also affects showdoc/showdoc |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor