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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/resources/echo-form-action.pl

Issue 125513003: Test case for when the XSS vector is in the path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase test. Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/perl -wT
2 use strict;
3 use CGI;
4
5 my $cgi = new CGI;
6
7 print "Content-Type: text/html; charset=UTF-8\n\n";
8
9 print "<!DOCTYPE html>\n";
10 print "<html>\n";
11 print "<body>\n";
12 print "<p>This is an iframe with a injected form</p>\n";
13 print "<form method=\"post\" id=\"login\" action=\"".$cgi->param('q')."\"></form >\n";
14 print "<script>if (window.testRunner) testRunner.notifyDone();</script>\n";
15 print "</body>\n";
16 print "</html>\n";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698