PT-2018-10645 · Angular · Angular-Jwt
Stephan Hauser
·
Publicado
2018-06-19
·
Atualizado
2022-05-14
·
CVE-2018-11537
CVSS v3.1
6.5
Média
| Vetor | AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
angular-jwt versions prior to 0.1.10
Description
The issue allows remote attackers with knowledge of the
jwtInterceptorProvider.whiteListedDomains setting to bypass the domain allowlist filter via a crafted domain. This is because the whiteListedDomains entries are treated as regular expressions. 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 wildcard which matches any character.Recommendations
For versions prior to 0.1.10, update to version 0.1.10 or later to resolve the issue. As a temporary workaround, consider manually validating domains against the allowlist to prevent bypassing the filter. Restrict access to the
jwtInterceptorProvider.whiteListedDomains setting to minimize the risk of exploitation. Avoid using the whiteListedDomains setting with untrusted input until the issue is resolved.Correção
RCE
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Angular-Jwt