GHSA-747x-5m58-mq97

Suggest an improvement
Source
https://github.com/advisories/GHSA-747x-5m58-mq97
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-747x-5m58-mq97/GHSA-747x-5m58-mq97.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-747x-5m58-mq97
Aliases
Published
2024-02-13T06:30:28Z
Modified
2024-10-16T17:06:15Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
svix vulnerable to Authentication Bypass
Details

Versions of the package svix before 1.17.0 are vulnerable to Authentication Bypass due to an issue in the verify function where signatures of different lengths are incorrectly compared. An attacker can bypass signature verification by providing a shorter signature that matches the beginning of the actual signature.

Note:

The attacker would need to know a victim uses the Rust library for verification,no easy way to automatically check that; and uses webhooks by a service that uses Svix, and then figure out a way to craft a malicious payload that will actually include all of the correct identifiers needed to trick the receivers to cause actual issues.

Database specific
{
    "nvd_published_at": "2024-02-13T05:15:08Z",
    "cwe_ids": [
        "CWE-288",
        "CWE-347"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-13T18:36:52Z"
}
References

Affected packages

crates.io / svix

Package

Affected ranges

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

Ecosystem specific

{
    "affected_functions": [
        "svix::webhooks::Webhook::verify"
    ]
}