Perl CGI::Cookie cookie attribute injection in Set-Cookie headers
CGI
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| CGI |
| No fix yet |
Original description
CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values.
The path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters.
An application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite.
From the CVE record · CPANSec