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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl

Issue 23441066: XSSAuditor bypass with frameset tags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename function. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
diff --git a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
index 72b51b50966a4ea42f28a0c1bf6baaa6be365ec9..130d62461bd3f412f30d78e9438f741acec29426 100755
--- a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
+++ b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
@@ -84,7 +84,11 @@ if ($cgi->param('relay-target-ids-for-event')) {
print "}, true);\n";
print "</script>\n";
}
-print "<body>\n";
+if ($cgi->param('inHead')) {
+ print "<head>\n";
+} else {
+ print "<body>\n";
+}
print $cgi->param('q');
if ($cgi->param('clutter')) {
print $cgi->param('clutter');
@@ -133,5 +137,9 @@ if ($cgi->param('alert-cookie')) {
if ($cgi->param('echo-report')) {
print "<script src=/security/contentSecurityPolicy/resources/go-to-echo-report.js></script>\n";
}
-print "</body>\n";
+if ($cgi->param('inHead')) {
+ print "</head>\n";
+} else {
+ print "</body>\n";
+}
print "</html>\n";
« no previous file with comments | « LayoutTests/http/tests/security/xssAuditor/frameset-injection-expected.txt ('k') | Source/core/html/parser/XSSAuditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698