Descrizione
CGI::Cookie versions from 4.67 before 5.00 for Perl allow denial of service via the client cookie expires value used as a regex in parse.
CGI's cookie method reads the Cookie request header through parse, which interpolates the header's expires value unescaped into the substitution pattern that removes it from the cookie string.
A client can make the request die with an invalid pattern, or tie up the process with one that backtracks catastrophically.
Tipo di vulnerabilità
CWE-625
Permissive Regular Expression
The product uses a regular expression that does not sufficiently restrict the set of allowed values.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione |
Come si previene
Sviluppo
When applicable, ensure that the regular expression marks beginning and ending string patterns, such as /^string$/ for Perl.
Tutte le 20 CVE di tipo CWE-625, con andamento e prevenzione