Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-rdvk-cbp2-wuh2
Summary
jwcrypto token substitution can lead to authentication bypass
The JWT code can auto-detect the type of token being provided, and this can lead the application to incorrect conclusions about the trustworthiness of the token.
Quoting the private disclosure we received : "Under certain circumstances, it is possible to substitute a [..] signed JWS with a JWE that is encrypted with the public key that is normally used for signature validation."
This substitution attack can occur only if the validating application also have access to the private key, normally used to sign the tokens, available during validation of the received JWT.
The significance of this attacks depends on the use of the token, it may lead to authentication bypass or authorization bypass (respectively if claims are used to authenticate or authorize certain actions), because the attacker has full control of the data placed in the JWE and can inject any desired claim value.

Several mitigating factors exist that can protect applications from this issue:
- If the private key corresponding to the public key used to encrypt the JWE is not available to the application an exception will be raised.
- If the JWK is specified with the 'use' parameter set to 'sig' (as expected for keys used only for signing/verification) an exception will be raised.
- If the JWK is specified with the 'key_ops' parameter set and it does not include the 'decrypt' operation an exception will be raised.
- Applications may check the token type before validation, in this case they would fail to detect an expected JWS

Normally, signing and validation are done by different applications, so this scenario should be unlikely. However it is possible to have applications that both sign and validate tokens and do not separate JWKs in use, or do not set a JWK 'use' type.

Due to the mitigating factors, and the fact that specific operational constraints and conditions need to be in place to successfully exploit this issue to generate an authentication bypass, we rate this security issue as moderate. Other avenues may decide on a different rating based on use case, always verify what conditions apply to your use of the library to assess risk.

Many thanks to Tom Tervoort of Secura for finding and reporting this issue.
Aliases
0
alias CVE-2022-3102
1
alias GHSA-gwp4-mcv4-w95j
2
alias GMS-2022-4401
Fixed_packages
0
url pkg:alpm/archlinux/python-jwcrypto@1.4.0-1
purl pkg:alpm/archlinux/python-jwcrypto@1.4.0-1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/python-jwcrypto@1.4.0-1
1
url pkg:pypi/jwcrypto@1.4
purl pkg:pypi/jwcrypto@1.4
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@1.4
Affected_packages
0
url pkg:alpm/archlinux/python-jwcrypto@1.3.1-1
purl pkg:alpm/archlinux/python-jwcrypto@1.3.1-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-rdvk-cbp2-wuh2
resource_url http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/python-jwcrypto@1.3.1-1
1
url pkg:pypi/jwcrypto@0.2.0
purl pkg:pypi/jwcrypto@0.2.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-t87t-re4z-gycu
3
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.2.0
2
url pkg:pypi/jwcrypto@0.2.1
purl pkg:pypi/jwcrypto@0.2.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-t87t-re4z-gycu
3
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.2.1
3
url pkg:pypi/jwcrypto@0.3.0
purl pkg:pypi/jwcrypto@0.3.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-t87t-re4z-gycu
3
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.3.0
4
url pkg:pypi/jwcrypto@0.3.1
purl pkg:pypi/jwcrypto@0.3.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-t87t-re4z-gycu
3
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.3.1
5
url pkg:pypi/jwcrypto@0.4.0
purl pkg:pypi/jwcrypto@0.4.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.4.0
6
url pkg:pypi/jwcrypto@0.4.1
purl pkg:pypi/jwcrypto@0.4.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.4.1
7
url pkg:pypi/jwcrypto@0.4.2
purl pkg:pypi/jwcrypto@0.4.2
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.4.2
8
url pkg:pypi/jwcrypto@0.5.0
purl pkg:pypi/jwcrypto@0.5.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.5.0
9
url pkg:pypi/jwcrypto@0.6.0
purl pkg:pypi/jwcrypto@0.6.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.6.0
10
url pkg:pypi/jwcrypto@0.7
purl pkg:pypi/jwcrypto@0.7
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.7
11
url pkg:pypi/jwcrypto@0.8
purl pkg:pypi/jwcrypto@0.8
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.8
12
url pkg:pypi/jwcrypto@0.9
purl pkg:pypi/jwcrypto@0.9
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.9
13
url pkg:pypi/jwcrypto@0.9.1
purl pkg:pypi/jwcrypto@0.9.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@0.9.1
14
url pkg:pypi/jwcrypto@1.0
purl pkg:pypi/jwcrypto@1.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@1.0
15
url pkg:pypi/jwcrypto@1.2
purl pkg:pypi/jwcrypto@1.2
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@1.2
16
url pkg:pypi/jwcrypto@1.3
purl pkg:pypi/jwcrypto@1.3
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@1.3
17
url pkg:pypi/jwcrypto@1.3.1
purl pkg:pypi/jwcrypto@1.3.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3uav-qamf-b7ek
1
vulnerability VCID-rdvk-cbp2-wuh2
2
vulnerability VCID-ygj7-qwt8-sud5
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/jwcrypto@1.3.1
References
0
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 4.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
1
reference_url https://github.com/latchset/jwcrypto
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/latchset/jwcrypto
2
reference_url https://github.com/latchset/jwcrypto/commit/f4e912f83cb578e2cd47f8a9398bf15f680bf558
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/latchset/jwcrypto/commit/f4e912f83cb578e2cd47f8a9398bf15f680bf558
3
reference_url https://github.com/latchset/jwcrypto/releases/tag/v1.4.0
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/latchset/jwcrypto/releases/tag/v1.4.0
4
reference_url https://github.com/latchset/jwcrypto/security/advisories/GHSA-gwp4-mcv4-w95j
reference_id
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/latchset/jwcrypto/security/advisories/GHSA-gwp4-mcv4-w95j
5
reference_url https://security.archlinux.org/AVG-2797
reference_id AVG-2797
reference_type
scores
0
value Medium
scoring_system archlinux
scoring_elements
url https://security.archlinux.org/AVG-2797
6
reference_url https://github.com/advisories/GHSA-gwp4-mcv4-w95j
reference_id GHSA-gwp4-mcv4-w95j
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-gwp4-mcv4-w95j
Weaknesses
0
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
Exploits
Severity_range_score4.0 - 6.9
Exploitability0.5
Weighted_severity6.2
Risk_score3.1
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-rdvk-cbp2-wuh2