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

Issue 421623003: XSSAuditor: treat questionmark as a non-canonical character. (Closed)

Created:
6 years, 5 months ago by Tom Sepez
Modified:
6 years, 4 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Project:
blink
Visibility:
Public.

Description

XSSAuditor: treat questionmark as a non-canonical character. We've seen recent examples of servers that replace an invalid set of of high-bytes with a literal questionmark. We are already excluding the high bytes from consideration, so we do the same with the questionmark to ensure a match should this happen. To test this, we hack up our "server script" to replace an arbitrary high byte with a questionmark. This is sufficient for testing although it may not match any real server. BUG=395351 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179161

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl View 1 chunk +5 lines, -1 line 0 comments Download
A + LayoutTests/http/tests/security/xssAuditor/script-tag-replaced-with-questionmark.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/http/tests/security/xssAuditor/script-tag-replaced-with-questionmark-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/html/parser/XSSAuditor.cpp View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Tom Sepez
Adam, please review.
6 years, 5 months ago (2014-07-25 19:42:10 UTC) #1
abarth-chromium
lgtm
6 years, 4 months ago (2014-07-29 16:31:21 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/421623003/1
6 years, 4 months ago (2014-07-29 16:31:34 UTC) #3
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 16:35:53 UTC) #4
Message was sent while issue was closed.
Change committed as 179161

Powered by Google App Engine
This is Rietveld 408576698