PT-2024-32802 · Cookie+1 · Cookie+1
Blakeembrey
·
Published
2024-10-04
·
Updated
2024-10-07
·
CVE-2024-47764
CVSS v4.0
6.9
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
cookie versions prior to 0.7.0
Description
The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for
path and domain, which could be abused to alter other fields of the cookie. For example, serialize("userName=<script>alert('XSS3')</script>; Max-Age=2592000; a", value) would result in "userName=<script>alert('XSS3')</script>; Max-Age=2592000; a=test", setting userName cookie to <script> and ignoring value.Recommendations
Upgrade to 0.7.0, which updates the validation for
name, path, and domain.
As a temporary workaround, avoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.Exploit
Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Cookie