WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
175848
[Curl] Update cookie jar implementation to filter out secure cookies
https://bugs.webkit.org/show_bug.cgi?id=175848
Summary
[Curl] Update cookie jar implementation to filter out secure cookies
Brent Fulgham
Reported
2017-08-22 13:46:48 PDT
The changeset
r221017
filters helps ensure proper HTTPS behavior for mixed content by blocking secure cookie access for sites that accessed insecure content, and for blocking insecure content loads after a secure cookie is read. The cURL backend currently has a stub that only serves to let it build. It does not provide the security benefit of the change. The following updates are needed in CookieJarCurl: 1. cookiesForSession needs to be updated to: (a) accept an IncludeSecureCookies flag. (b) Return a std::pair containing the cookie string, and a boolean that indicates if secure cookies were read (didAccessSecureCookies, below). 2. addMatchingCurlCookie needs to be updated to: (a) accept an IncludeSecureCookies flag. (b) accept a boolean reference (e.g., didAccessSecureCookies) that can be set to true if the read process encountered a secure cookie. (c) At Line 121, where you read the 'strSecure' flag: (I) If 'strSecure' matches TRUE: (i) If 'IncludeSecureCookies' flag is set to NO, return. didAccessSecureCookies should be set to false. (ii) Otherwise, set didAccessSecureCookies to true and continue. (II) Otherwise, continue. I think that should do it.
Attachments
Add attachment
proposed patch, testcase, etc.
Michael Catanzaro
Comment 1
2017-08-22 13:49:41 PDT
***
Bug 175849
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug