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

Unified Diff: Source/core/html/parser/XSSAuditor.cpp

Issue 23441066: XSSAuditor bypass with frameset tags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/XSSAuditor.cpp
diff --git a/Source/core/html/parser/XSSAuditor.cpp b/Source/core/html/parser/XSSAuditor.cpp
index ccae51ca3072363c37573e4775617e1cdc501a26..b7f0149e586198fa1fb4e6b6e8db34244f1906c1 100644
--- a/Source/core/html/parser/XSSAuditor.cpp
+++ b/Source/core/html/parser/XSSAuditor.cpp
@@ -353,7 +353,7 @@ bool XSSAuditor::filterStartToken(const FilterTokenRequest& request)
didBlockScript |= filterEmbedToken(request);
else if (hasName(request.token, appletTag))
didBlockScript |= filterAppletToken(request);
- else if (hasName(request.token, iframeTag))
+ else if (hasName(request.token, iframeTag) || hasName(request.token, frameTag))
didBlockScript |= filterIframeToken(request);
abarth-chromium 2013/09/13 21:19:51 filterIframeToken -> Can we rename this function t
Tom Sepez 2013/09/13 21:29:28 Done.
else if (hasName(request.token, metaTag))
didBlockScript |= filterMetaToken(request);
@@ -463,7 +463,7 @@ bool XSSAuditor::filterAppletToken(const FilterTokenRequest& request)
bool XSSAuditor::filterIframeToken(const FilterTokenRequest& request)
{
ASSERT(request.token.type() == HTMLToken::StartTag);
- ASSERT(hasName(request.token, iframeTag));
+ ASSERT(hasName(request.token, iframeTag) || hasName(request.token, frameTag));
bool didBlockScript = false;
if (isContainedInRequest(decodedSnippetForName(request))) {
« no previous file with comments | « LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698