Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Issue 40105: XSS in testbed output (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 7 months ago by MikeSamuel
Modified:
17 years, 4 months ago
Reviewers:
Jasvir, metaweta
CC:
lcamtuf, google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

The testbed has an XSS vulnerability when the embeddable flag is off. As an example, <IMG alt=foo&#x3c;/script&#x3e;&#x3c;script&#x3e;alert(1)&#x3c;/script&#x3e;> causes an alert. This affects only the testbed since other clients of the gadget rewriter use the default behavior which is to render JS in embeddable mode. The testbed allows this to be overridden so that output is more readable. Submitted @3446

Patch Set 1 #

Patch Set 2 : XSS in testbed output #

Patch Set 3 : XSS in testbed output #

Patch Set 4 : XSS in testbed output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M src/com/google/caja/opensocial/DefaultGadgetRewriter.java View 1 2 3 5 chunks +16 lines, -5 lines 0 comments Download
M src/com/google/caja/opensocial/applet/CajaApplet.java View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/com/google/caja/opensocial/applet/index.html View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 2
MikeSamuel
17 years, 7 months ago (2009-04-15 22:50:51 UTC) #1
Jasvir
17 years, 7 months ago (2009-04-24 16:51:14 UTC) #2
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b