Advisory

GHSA-vm2p-f5j4-mj6g

Also known as: CVE-2018-11537

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-14 03:05 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

angular-jwt

npm · All systems

Affected

  • introduced 0, fixed 0.1.10 (semver)

Fixed versions

0.1.10

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences