[Webkit-unassigned] [Bug 27895] [XSSAuditor] Inline Event Handler with single-line JavaScript comment can bypass XSSAuditor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 25 17:04:37 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=27895
Daniel Bates <dbates at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #40145|0 |1
is obsolete| |
--- Comment #11 from Daniel Bates <dbates at webkit.org> 2009-09-25 17:04:37 PDT ---
Created an attachment (id=40154)
--> (https://bugs.webkit.org/attachment.cgi?id=40154)
Patch with test cases
Added an additional test case img-onerror-HTML-comment.html.
We may want to file a separate bug to fix comments within script tags such as:
<script>alert(1);/*<!--
Example:
http://good.webblaze.org/dbates/xsstest-script-comment.php?q=%3Cscript%3Ealert%28/XSS/%29%3B/*%3C%21--
<script>alert(1);/*
Example:
http://good.webblaze.org/dbates/xsstest-script-comment.php?q=%3Cscript%3Ealert%28/XSS/%29%3B/*
<script>alert(1);//
Example:
http://good.webblaze.org/dbates/xsstest-script-comment.php?q=%3Cscript%3Ealert%28/XSS/%29%3B//
<script>alert(1);<!--
Example:
http://good.webblaze.org/dbates/xsstest-script-comment.php?q=%3Cscript%3Ealert%28/XSS/%29%3B%3C%21--
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list