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

Issue 5540049: Fix vulnerability due to overflow of CSS beyond container boundary (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 12 months ago by ihab.awad
Modified:
13 years, 11 months ago
Reviewers:
MarkM, Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

It is possible to craft guest code creating visible content outside the boundary of the double-DIV sandbox enforced by Caja. For example: <div style="margin-left:-150px;margin-top:0px;width:110px;"> <div>Phishing content</div> </div> This was introduced at r4374 due to the removal of a CSS property "overflow: hidden" in the caja.js styling of the container DIVs. This vulnerability allows guest content authors to overlay and mimic the user interface of surrounding container content, and thus attempt to phish the end-user into entering into the guest content information that would normally only be revealed to the container. See http://code.google.com/p/google-caja/issues/detail?id=1442

Patch Set 1 #

Patch Set 2 : Fix vulnerability due to overflow of CSS beyond container boundary #

Total comments: 6

Patch Set 3 : Fix vulnerability due to overflow of CSS beyond container boundary #

Patch Set 4 : Fix vulnerability due to overflow of CSS beyond container boundary #

Patch Set 5 : Fix vulnerability due to overflow of CSS beyond container boundary #

Patch Set 6 : Fix vulnerability due to overflow of CSS beyond container boundary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -48 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 3 chunks +7 lines, -31 lines 0 comments Download
M tests/com/google/caja/plugin/ES53BrowserTest.java View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/browser-test-case.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A tests/com/google/caja/plugin/es53-test-container-overflow.js View 1 2 3 4 5 1 chunk +121 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-container-overflow-guest.html View 1 2 5 1 chunk +33 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-special-guest.html View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-errors.js View 1 2 3 4 5 1 chunk +1 line, -11 lines 0 comments Download

Messages

Total messages: 9
ihab.awad
13 years, 12 months ago (2012-01-12 22:14:41 UTC) #1
ihab.awad
13 years, 12 months ago (2012-01-12 22:14:48 UTC) #2
Jasvir
LGTM http://codereview.appspot.com/5540049/diff/2001/tests/com/google/caja/plugin/ES53BrowserTest.java File tests/com/google/caja/plugin/ES53BrowserTest.java (right): http://codereview.appspot.com/5540049/diff/2001/tests/com/google/caja/plugin/ES53BrowserTest.java#newcode192 tests/com/google/caja/plugin/ES53BrowserTest.java:192: runTestDriver("es53-test-container-overflow.js", false); s/, false// http://codereview.appspot.com/5540049/diff/2001/tests/com/google/caja/plugin/browser-test-case.html File tests/com/google/caja/plugin/browser-test-case.html (right): ...
13 years, 12 months ago (2012-01-12 23:43:58 UTC) #3
ihab.awad
http://codereview.appspot.com/5540049/diff/2001/tests/com/google/caja/plugin/ES53BrowserTest.java File tests/com/google/caja/plugin/ES53BrowserTest.java (right): http://codereview.appspot.com/5540049/diff/2001/tests/com/google/caja/plugin/ES53BrowserTest.java#newcode192 tests/com/google/caja/plugin/ES53BrowserTest.java:192: runTestDriver("es53-test-container-overflow.js", false); On 2012/01/12 23:43:59, Jasvir wrote: > s/, ...
13 years, 12 months ago (2012-01-12 23:49:01 UTC) #4
ihab.awad
13 years, 12 months ago (2012-01-13 22:18:15 UTC) #5
ihab.awad
13 years, 12 months ago (2012-01-13 22:21:16 UTC) #6
ihab.awad
13 years, 12 months ago (2012-01-13 22:25:54 UTC) #7
ihab.awad
13 years, 11 months ago (2012-01-16 22:47:03 UTC) #8
ihab.awad
13 years, 11 months ago (2012-01-16 23:35:24 UTC) #9
Fixed in r4761.
Sign in to reply to this message.

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