openidc/pyoidc · Security
Multiple cryptographic issues in Python oic
- GHSA ID
- GHSA-4fjv-pmhg-3rfg
- CVE ID
- CVE-2020-26244
- Severity
- high
- Published
- Updated
- CVSS
- 6.8 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- CVSS v3
- 6.8 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- CVSS v4
- 7.6 · CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Description
Impact
- Client implementations using this library
Issues
- The IdToken signature algorithm was not checked automatically, but only if the expected algorithm was passed in as a kwarg.
- JWA
nonealgorithm was allowed in all flows. oic.consumer.Consumer.parse_authzreturns an unverified IdToken. The verification of the token was left to the discretion of the implementator.iatclaim was not checked for sanity (i.e. it could be in the future)
Patches
- IdToken signature is now always checked.
- JWA
nonealgorithm is now allowed only if using theresponse_typecode - IdToken verification is now done automatically.
iatclaim is now checked for sanity.
CWEs
- CWE-325 · Missing Cryptographic Step
- CWE-347 · Improper Verification of Cryptographic Signature
References
- https://github.com/OpenIDC/pyoidc/security/advisories/GHSA-4fjv-pmhg-3rfg ↗
- https://github.com/OpenIDC/pyoidc/commit/62f8d753fa17c8b1f29f8be639cf0b33afb02498 ↗
- https://github.com/OpenIDC/pyoidc/releases/tag/1.2.1 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2020-26244 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/oic/PYSEC-2020-69.yaml ↗
- https://pypi.org/project/oic ↗
- https://github.com/advisories/GHSA-4fjv-pmhg-3rfg ↗