GHSA-vm2p-f5j4-mj6g

Suggest an improvement
Source
https://github.com/advisories/GHSA-vm2p-f5j4-mj6g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vm2p-f5j4-mj6g/GHSA-vm2p-f5j4-mj6g.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-vm2p-f5j4-mj6g
Aliases
Published
2022-05-14T03:05:44Z
Modified
2023-11-01T04:48:48.478877Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Auth0 angular-jwt misinterprets allowlist as regex
Details

Auth0 angular-jwt before 0.1.10 treats whiteListedDomains entries as regular expressions, which allows remote attackers with knowledge of the jwtInterceptorProvider.whiteListedDomains setting to bypass the domain allowlist filter via a crafted domain.

For example, if the setting is initialized with:

jwtInterceptorProvider.whiteListedDomains = ['whitelisted.Example.com'];

An attacker can set up a domain whitelistedXexample.com that will pass the allow list filter, as it considers the . separator to be a regex whildcard which matches any character.

Database specific
{
    "nvd_published_at": "2018-06-19T19:29:00Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-10-19T18:21:26Z"
}
References

Affected packages

npm / angular-jwt

Package

Affected ranges

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