REDHAT-BUG-2394750: Medium severity curl vulnerability
1. A cookie is set using the secure keyword for https://target 2. curl is redirected to or otherwise made to speak with http://target (same hostname, but using clear text HTTP) using the same cookie set 3. The same cookie name is set - but with just a slash as path (path='/'). Since this site is not secure, the cookie should just be ignored. 4. A bug in the path comparison logic makes curl read outside a heap buffer boundary
The bug either causes a crash or it potentially makes the comparison come to the wrong conclusion and lets the clear-text site override the contents of the secure cookie, contrary to expectations and depending on the memory contents immediately following the single-byte allocation that holds the path.
The presumed and correct behavior would be to plainly ignore the second set of the cookie since it was already set as secure on a secure host so overriding it on an insecure host should not be okay.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2394750?
The severity of REDHAT-BUG-2394750 is considered medium due to potential risks associated with cookie security and data leakage.
How do I fix REDHAT-BUG-2394750?
To fix REDHAT-BUG-2394750, ensure that cookies are only sent over secure connections and avoid redirecting to HTTP.
What impact does REDHAT-BUG-2394750 have on security?
REDHAT-BUG-2394750 can lead to cookie hijacking and unauthorized access due to the improper handling of secure cookies.
Is REDHAT-BUG-2394750 a known vulnerability in libcurl?
Yes, REDHAT-BUG-2394750 is a known vulnerability affecting redhat/libcurl and related packages.
What versions of redhat/libcurl are affected by REDHAT-BUG-2394750?
All versions of redhat/libcurl that implement the vulnerability are potentially affected by REDHAT-BUG-2394750.