Descrizione
Crypt::JWT versions before 0.024 for Perl skip issuer, subject, audience and JWT ID checks when the claim is absent or the option is a plain string.
decode_jwt runs the verify_iss, verify_sub, verify_aud and verify_jti checks only when the token carries the claim, and honours an option only as a Regexp or CODE reference. Any other value, such as verify_aud => 'myapp', is ignored.
An application that relies on these checks accepts a validly signed token meant for a different issuer, subject or audience.
Tipo di vulnerabilità
CWE-636
Not Failing Securely
When the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or using the most permissive access control restrictions.
Impatto sui sistemi
| Ambito | Impatto |
| Altro |
Dipende dal contesto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione |
Come si previene
Architettura e progettazione
Subdivide and allocate resources and components so that a failure in one part does not affect the entire product.
Tutte le 69 CVE di tipo CWE-636, con andamento e prevenzione