Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2808753003: Carve out an exception for embedded credentials in XHR. (Closed)

Created:
3 years, 8 months ago by Mike West
Modified:
3 years, 8 months ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, falken+watch_chromium.org, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, michaeln, nhiroki, pfeldman+blink_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik, vabr+watchlistlogin_chromium.org, Yoav Weiss
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Carve out an exception for embedded credentials in XHR. As discussed in https://crbug.com/707761, the security justification for restricting username/password in XHR is weaker than I thought it was. I'd still _like_ to remove developer-controlled usernames and passwords from the platform, but I was incorrect to point to them as an actual vulnerability, given the way basic/digest auth actually works (requiring CORS-same-originness, and handshaking through a 401 response). So, this patch limits the previous restrictions against embedded credentials to non-XHR use cases. That will make SAP happy, and should resolve the other complaints this change has generated. BUG=707761, 708131, 504300 Review-Url: https://codereview.chromium.org/2808753003 Cr-Commit-Position: refs/heads/master@{#464019} Committed: https://chromium.googlesource.com/chromium/src/+/fd04d4a0b5f4a35c4acd66a0b35773deb33e8bb6

Patch Set 1 #

Patch Set 2 : Rebaseline. #

Patch Set 3 : Rebaseline. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -64 lines) Patch
M chrome/browser/ui/login/login_handler_browsertest.cc View 2 chunks +69 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/credentials-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/serviceworker/credentials.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-replay.html View 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-replay-expected.txt View 1 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/failed-auth.html View 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/failed-auth-expected.txt View 1 chunk +2 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/logout.html View 1 chunk +56 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/logout-expected.txt View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php View 1 chunk +4 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth-expected.txt View 1 chunk +2 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/remember-bad-password.html View 1 chunk +68 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/remember-bad-password-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 27 (15 generated)
Mike West
WDYT about carving out XHR, Jochen?
3 years, 8 months ago (2017-04-11 11:31:43 UTC) #10
Mike West
+other API OWNER folks who approved the initial intent.
3 years, 8 months ago (2017-04-11 11:32:16 UTC) #12
jochen (gone - plz use gerrit)
what happened to the idea of forcing a preflight?
3 years, 8 months ago (2017-04-11 11:36:34 UTC) #14
Mike West
On 2017/04/11 at 11:36:34, jochen wrote: > what happened to the idea of forcing a ...
3 years, 8 months ago (2017-04-11 12:27:40 UTC) #15
Mike West
On 2017/04/11 at 12:27:40, Mike West wrote: > On 2017/04/11 at 11:36:34, jochen wrote: > ...
3 years, 8 months ago (2017-04-11 12:28:54 UTC) #16
jochen (gone - plz use gerrit)
that means that you could still use this to brute force router passwords?
3 years, 8 months ago (2017-04-11 12:31:49 UTC) #17
foolip
Leaving this to jochen@, please poke me if I'm needed.
3 years, 8 months ago (2017-04-11 14:12:53 UTC) #18
Mike West
On 2017/04/11 at 12:31:49, jochen wrote: > that means that you could still use this ...
3 years, 8 months ago (2017-04-12 05:01:42 UTC) #19
jochen (gone - plz use gerrit)
I asked on the bug whether it was possible to restrict this to https... let's ...
3 years, 8 months ago (2017-04-12 09:26:20 UTC) #20
jochen (gone - plz use gerrit)
guess they don't do https :/ oh well, lgtm
3 years, 8 months ago (2017-04-12 10:28:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2808753003/40001
3 years, 8 months ago (2017-04-12 11:25:18 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 14:39:31 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/fd04d4a0b5f4a35c4acd66a0b357...

Powered by Google App Engine
This is Rietveld 408576698