Bug 27151

Summary: [XSSAuditor] JavaScript URLs with null/control characters bypass XSSAuditor
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dbates, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch with tests
abarth: review-
Updated patch with tests. abarth: review+

Daniel Bates
Reported 2009-07-10 11:16:17 PDT
Attachments
Patch with tests (10.74 KB, patch)
2009-07-10 11:20 PDT, Daniel Bates
abarth: review-
Updated patch with tests. (11.84 KB, patch)
2009-07-10 13:35 PDT, Daniel Bates
abarth: review+
Daniel Bates
Comment 1 2009-07-10 11:20:23 PDT
Created attachment 32565 [details] Patch with tests
Adam Barth
Comment 2 2009-07-10 13:16:57 PDT
Comment on attachment 32565 [details] Patch with tests This looks good, but can you make the same change to the V8 bindings in WebCore/bindings/v8?
Daniel Bates
Comment 3 2009-07-10 13:35:23 PDT
Created attachment 32573 [details] Updated patch with tests. I made the changes in the V8 bindings, but how do I test it? Also, moved line "const String* savedSourceURL = m_sourceURL;" to its original place in file WebCore/bindings/js/ScriptController.cpp.
Adam Barth
Comment 4 2009-07-10 13:39:27 PDT
Comment on attachment 32573 [details] Updated patch with tests. This looks good. To test the V8 bindings, you need a Chromium build. I'll watch the chromium build bot to make sure it works fine.
Daniel Bates
Comment 5 2009-07-10 13:41:16 PDT
Thanks. (In reply to comment #4) > (From update of attachment 32573 [details]) > This looks good. To test the V8 bindings, you need a Chromium build. I'll > watch the chromium build bot to make sure it works fine.
Adam Barth
Comment 6 2009-07-10 18:32:05 PDT
Sending LayoutTests/ChangeLog Adding LayoutTests/http/tests/security/xssAuditor/javascript-link-control-char-expected.txt Adding LayoutTests/http/tests/security/xssAuditor/javascript-link-control-char.html Adding LayoutTests/http/tests/security/xssAuditor/javascript-link-expected.txt Adding LayoutTests/http/tests/security/xssAuditor/javascript-link-null-char-expected.txt Adding LayoutTests/http/tests/security/xssAuditor/javascript-link-null-char.html Adding LayoutTests/http/tests/security/xssAuditor/javascript-link.html Adding LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag-click-and-notify.pl Sending WebCore/ChangeLog Sending WebCore/bindings/js/ScriptController.cpp Sending WebCore/bindings/v8/ScriptController.cpp Sending WebCore/page/XSSAuditor.cpp Sending WebCore/page/XSSAuditor.h Transmitting file data ............. Committed revision 45741. http://trac.webkit.org/changeset/45741
Note You need to log in before you can comment on or make changes to this bug.