ADVISORIES

GitHub Advisory Database

GHSA-4fjv-pmhg-3rfg

Multiple cryptographic issues in Python oic

Details

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 none algorithm was allowed in all flows.
  • oic.consumer.Consumer.parse_authz returns an unverified IdToken. The verification of the token was left to the discretion of the implementator.
  • iat claim was not checked for sanity (i.e. it could be in the future)

Patches

  • IdToken signature is now always checked.
  • JWA none algorithm is now allowed only if using the response_type code
  • IdToken verification is now done automatically.
  • iat claim is now checked for sanity.

Affected packages

EcosystemPackageAffected versions
PyPIoic
All versions before 1.2.1 (fixed in 1.2.1)

References