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

Issue 2817213002: Improve canonicalization of mailto url path components (Closed)

Created:
3 years, 8 months ago by elawrence
Modified:
3 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve canonicalization of mailto url path components The canonicalization of the path component of mailto urls is too lax, leading to information disclosure and possible command injection attacks against mail clients. To fix this, we will percent-encode more characters in the path component of mailto urls, matching other browsers. BUG=711020 TEST=url_unittests Review-Url: https://codereview.chromium.org/2817213002 Cr-Commit-Position: refs/heads/master@{#465046} Committed: https://chromium.googlesource.com/chromium/src/+/484ff36cdcb8dcf5efa999a471d1d509c0a8a5f2

Patch Set 1 #

Patch Set 2 : Simplify comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -16 lines) Patch
M url/url_canon_mailtourl.cc View 1 2 chunks +19 lines, -2 lines 0 comments Download
M url/url_canon_unittest.cc View 2 chunks +45 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
elawrence
PTAL?
3 years, 8 months ago (2017-04-14 16:13:26 UTC) #4
brettw
lgtm
3 years, 8 months ago (2017-04-17 19:29:34 UTC) #5
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/2817213002/20001
3 years, 8 months ago (2017-04-17 21:29:32 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/484ff36cdcb8dcf5efa999a471d1d509c0a8a5f2
3 years, 8 months ago (2017-04-17 22:40:12 UTC) #10
alexmos
3 years, 8 months ago (2017-04-17 23:42:14 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2823883005/ by alexmos@chromium.org.

The reason for reverting is: appears to be breaking fast/url/mailto.html on at
least the Mac bots: 
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.10/build...
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.12/build...
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9/builds...

diffs:
-PASS canonicalize('mailto:addr1, addr2') is 'mailto:addr1, addr2' 
+FAIL canonicalize('mailto:addr1, addr2') should be mailto:addr1, addr2. Was
mailto:addr1,%20addr2. 
.

Powered by Google App Engine
This is Rietveld 408576698