GHSA-5mmw-p5qv-w3x5

Suggest an improvement
Source
https://github.com/advisories/GHSA-5mmw-p5qv-w3x5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-5mmw-p5qv-w3x5/GHSA-5mmw-p5qv-w3x5.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5mmw-p5qv-w3x5
Aliases
Published
2023-12-12T00:30:17Z
Modified
2023-12-14T22:03:11Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Always incorrect control flow in github.com/mojocn/base64Captcha
Details

When using the default implementation of Verify to check a Captcha, verification can be bypassed. For example, if the first parameter is a non-existent id, the second parameter is an empty string, and the third parameter is true, the function will always consider the Captcha to be correct.

Database specific
{
    "nvd_published_at": "2023-12-11T22:15:06Z",
    "cwe_ids": [
        "CWE-345",
        "CWE-670"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-12-12T18:09:52Z"
}
References

Affected packages

Go / github.com/mojocn/base64Captcha

Package

Name
github.com/mojocn/base64Captcha
View open source insights on deps.dev
Purl
pkg:golang/github.com/mojocn/base64Captcha

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.6