pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-jwcrypto



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon May 29 08:51:08 UTC 2023

Modified Files:
        pkgsrc/www/py-jwcrypto: Makefile distinfo

Log Message:
py-jwcrypto: updated to 1.4.2

Version 1.4.2
Fix typo in new backwards JWT compat heuristics

Version 1.4.1
This is a minor release focused on improving backwards compatibility with applications after the API breaking changes introduced in 1.4
This patch adds a bunch of heuristics to be able to safely autodetect a token type. It has been tested to solve the compatibility issues (ie old code works without modifications and fully securely) 
with at least one large application.

Version 1.4
This is a security release to address CVE-2022-3102.

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.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/py-jwcrypto/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-jwcrypto/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-jwcrypto/Makefile
diff -u pkgsrc/www/py-jwcrypto/Makefile:1.2 pkgsrc/www/py-jwcrypto/Makefile:1.3
--- pkgsrc/www/py-jwcrypto/Makefile:1.2 Wed Oct 19 13:56:34 2022
+++ pkgsrc/www/py-jwcrypto/Makefile     Mon May 29 08:51:08 2023
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2022/10/19 13:56:34 nia Exp $
+# $NetBSD: Makefile,v 1.3 2023/05/29 08:51:08 adam Exp $
 
-DISTNAME=      jwcrypto-1.3.1
+DISTNAME=      jwcrypto-1.4.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    www
+CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=j/jwcrypto/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/www/py-jwcrypto/distinfo
diff -u pkgsrc/www/py-jwcrypto/distinfo:1.1 pkgsrc/www/py-jwcrypto/distinfo:1.2
--- pkgsrc/www/py-jwcrypto/distinfo:1.1 Thu Sep  1 11:51:07 2022
+++ pkgsrc/www/py-jwcrypto/distinfo     Mon May 29 08:51:08 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2022/09/01 11:51:07 markd Exp $
+$NetBSD: distinfo,v 1.2 2023/05/29 08:51:08 adam Exp $
 
-BLAKE2s (jwcrypto-1.3.1.tar.gz) = 0d4064294997065ba1d3907e4bba938d1f3d33657ebb71e339d1dd9ab728a2d8
-SHA512 (jwcrypto-1.3.1.tar.gz) = f43e1dbf68414eb3309252ce781cf36dd52605aaab19f1cc3a0e24942ac86917e186ed173a745a90c215d8f0679309d0b1ca9ae49f67ca5d8dc60dbb8733a0f5
-Size (jwcrypto-1.3.1.tar.gz) = 83028 bytes
+BLAKE2s (jwcrypto-1.4.2.tar.gz) = 7931e98e45cbebd13927b4e654d58f7a03f01f278469057ab6cf9a7150c39f5d
+SHA512 (jwcrypto-1.4.2.tar.gz) = 21c55b96d6565cfb75711b9c0291b4376737e2ee6840bd983dc55b93c0ae25c7c99b55dd75f10b8560a2b2cd18fe057015f579418f47e572bee89795902a7d08
+Size (jwcrypto-1.4.2.tar.gz) = 85106 bytes



Home | Main Index | Thread Index | Old Index