web-token/jwt-encryption Security Advisories for v0.4.0 (10)
-
dir, ECDH-ES and ECDH-SS accept a non-empty JWE Encrypted Key, so token strings are malleable
Affected version: <=3.2.10
Reported by:
FriendsOfPHP/security-advisories -
RSA-OAEP accepts an encrypted key made of several RSA blocks, enabling recovery of another JWE's content encryption key through a decryption oracle
Affected version: <2.0.4
Reported by:
FriendsOfPHP/security-advisories -
AES-GCM decryption accepts any authentication tag length: a holder of one valid JWE can brute force a 1-byte tag in at most 256 requests and rewrite the plaintext
Affected version: <1.2.0
Reported by:
FriendsOfPHP/security-advisories -
RSA keys of any size are accepted: a key chosen by the sender of a token costs seconds of CPU per operation (RSA-PSS and RSA encryption, and every RSA algorithm without GMP)
Affected version: <2.0.4
Reported by:
FriendsOfPHP/security-advisories -
AES key wrapping accepts oct keys shorter than the algorithm key size and pads them with zero bytes: an empty key wraps every CEK under an all-zero key
Affected version: <1.2.0
Reported by:
FriendsOfPHP/security-advisories -
ECDH-ES derives at most 256 bits of key material: with A256CBC-HS512 the content is encrypted under an all-zero AES key and anyone holding the token can read it
Affected version: <2.0.4
Reported by:
FriendsOfPHP/security-advisories -
JWS and JWE serializers decode attacker-controlled JSON without bounds before verification (CPU and memory denial of service)
Affected version: <=3.2.10
Reported by:
FriendsOfPHP/security-advisories -
Direct encryption (dir) does not check the key size: with a key of half the required size, AES-CBC-HMAC content is encrypted under an all-zero AES key and anyone holding the token can read it
Affected version: <=3.2.10
Reported by:
FriendsOfPHP/security-advisories -
Without GMP, PS256/PS384/PS512 verification and RSA-OAEP/RSA1_5 decryption cost seconds to minutes of CPU per forged token, with the application's own keys
Affected version: <2.0.4
Reported by:
FriendsOfPHP/security-advisories -
Denial of service through the shared headers of a general JSON JWE processed again for each recipient
Affected version: <=3.2.10
Reported by:
FriendsOfPHP/security-advisories