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

Issue 574283006: Fix dictionary domain check problem. (Closed)

Created:
6 years, 3 months ago by Randy Smith (Not in Mondays)
Modified:
6 years, 3 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix dictionary domain check problem. Previous to this change, suffixing a "." to the URL from which a dictionary was being suggested would allow servers to bypass the check against a subdomain (e.g. evil.protected.good.com) setting a dictionary to be used by a superdomain (.good.com). BUG=389451 R=rsleevi@chromium.org Committed: https://crrev.com/14fd659a2284bc9f301828ada49b8d3fe1f80550 Cr-Commit-Position: refs/heads/master@{#296246}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporated comments and forbid dictionary domains with "."s. #

Total comments: 26

Patch Set 3 : First pass at simpler, targeted fix. #

Patch Set 4 : Full implementation of simpler, targeted fix. #

Patch Set 5 : Fixed glitch from self-review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
M net/base/sdch_manager.cc View 1 2 3 4 3 chunks +29 lines, -3 lines 0 comments Download
M net/base/sdch_manager_unittest.cc View 1 2 3 3 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 22 (1 generated)
Randy Smith (Not in Mondays)
Ryan, could you take a look at this? The key issue here, to my mind, ...
6 years, 3 months ago (2014-09-17 19:16:29 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc File net/base/sdch_manager.cc (right): https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc#newcode21 net/base/sdch_manager.cc:21: bool FQDNToHDN(std::string* host) { 1) Naming: "HDN" is not ...
6 years, 3 months ago (2014-09-18 01:22:31 UTC) #2
Randy Smith (Not in Mondays)
On 2014/09/18 01:22:31, Ryan Sleevi wrote: > https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc > File net/base/sdch_manager.cc (right): > > https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc#newcode21 ...
6 years, 3 months ago (2014-09-18 18:30:05 UTC) #3
Randy Smith (Not in Mondays)
On 2014/09/18 18:30:05, rdsmith wrote: > On 2014/09/18 01:22:31, Ryan Sleevi wrote: > > https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc ...
6 years, 3 months ago (2014-09-22 16:30:02 UTC) #4
Ryan Sleevi
On 2014/09/22 16:30:02, rdsmith wrote: > On 2014/09/18 18:30:05, rdsmith wrote: > > On 2014/09/18 ...
6 years, 3 months ago (2014-09-22 16:50:38 UTC) #5
Randy Smith (Not in Mondays)
On 2014/09/22 16:50:38, Ryan Sleevi wrote: > On 2014/09/22 16:30:02, rdsmith wrote: > > On ...
6 years, 3 months ago (2014-09-22 17:40:08 UTC) #6
Ryan Sleevi
On 2014/09/22 17:40:08, rdsmith wrote: > On 2014/09/22 16:50:38, Ryan Sleevi wrote: > > On ...
6 years, 3 months ago (2014-09-22 17:42:10 UTC) #7
Ryan Sleevi
On 2014/09/22 17:40:08, rdsmith wrote: > On 2014/09/22 16:50:38, Ryan Sleevi wrote: > > On ...
6 years, 3 months ago (2014-09-22 17:42:12 UTC) #8
Randy Smith (Not in Mondays)
Ryan: New upload, PTAL. https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc File net/base/sdch_manager.cc (right): https://codereview.chromium.org/574283006/diff/1/net/base/sdch_manager.cc#newcode21 net/base/sdch_manager.cc:21: bool FQDNToHDN(std::string* host) { On ...
6 years, 3 months ago (2014-09-22 19:22:11 UTC) #9
Ryan Sleevi
Now that I've had more time to read, I'm more confused why this is necessary. ...
6 years, 3 months ago (2014-09-22 20:30:37 UTC) #10
Randy Smith (Not in Mondays)
Responding quickly to your question based on my preference for nailing down the philosophy before ...
6 years, 3 months ago (2014-09-22 20:43:51 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/574283006/diff/20001/net/base/sdch_manager.cc File net/base/sdch_manager.cc (right): https://codereview.chromium.org/574283006/diff/20001/net/base/sdch_manager.cc#newcode523 net/base/sdch_manager.cc:523: void SdchManager::AddSdchDictionary(const std::string& dictionary_text, style nits: Perhaps for a ...
6 years, 3 months ago (2014-09-22 20:55:27 UTC) #12
Randy Smith (Not in Mondays)
Still ignoring code changes until I'm comfortable we're in sync on the change philosophy. (Sorry ...
6 years, 3 months ago (2014-09-22 21:09:56 UTC) #13
Ryan Sleevi
Sorry to continue to go back and forth with you. I have no doubt that ...
6 years, 3 months ago (2014-09-22 22:49:43 UTC) #14
Randy Smith (Not in Mondays)
On 2014/09/22 22:49:43, Ryan Sleevi (expect_delays) wrote: > Sorry to continue to go back and ...
6 years, 3 months ago (2014-09-23 17:36:44 UTC) #15
Randy Smith (Not in Mondays)
Anyone following along at home :-}: Ryan and I talked offline, and agreed to do ...
6 years, 3 months ago (2014-09-23 19:52:59 UTC) #16
Ryan Sleevi
lgtm
6 years, 3 months ago (2014-09-23 19:57:54 UTC) #17
Randy Smith (Not in Mondays)
On 2014/09/23 19:57:54, Ryan Sleevi (expect_delays) wrote: > lgtm I'm having this feeling of having ...
6 years, 3 months ago (2014-09-23 19:59:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574283006/80001
6 years, 3 months ago (2014-09-23 20:31:21 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 74bfdcf49ffc08522a8838937357dc10d95e1a3d
6 years, 3 months ago (2014-09-23 21:13:17 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 21:14:21 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/14fd659a2284bc9f301828ada49b8d3fe1f80550
Cr-Commit-Position: refs/heads/master@{#296246}

Powered by Google App Engine
This is Rietveld 408576698