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

Issue 6304091: fix some servlet issues (Closed)

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

Description

1. 'ant clean runserver' fails because we're no longer building the tools servlet. in the appengine logs, there are zero uses of the tools in the past 90 days, so I'm just deleting them from web.xml. If anyone complains, I can re-enable it and fix the build. 2. In some cases, IE will disbelieve content-type: application/json and interpret the result as html instead. This is not particularly exploitable, since caja.appspot.com has no cookies and no authority, but if someone deploys the caja servlet to their own host, they might be vulnerable to the XSS. - to fix that for IE >= 8, I'm emitting X-Content-Type-Options: nosniff - to fix that for IE7, I'm rejecting request URLs that contain ';' - IE6 users lose, they're vulnerable. Fixing that is complicated and doesn't seem worth it.

Patch Set 1 #

Patch Set 2 : fix some servlet issues #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M src/com/google/caja/ancillary/servlet/CajaWebToolsServlet.java View 1 3 chunks +8 lines, -0 lines 0 comments Download
M src/com/google/caja/service/CajolingServlet.java View 1 3 chunks +10 lines, -4 lines 0 comments Download
M src/com/google/caja/service/PrecajoleInfoServlet.java View 1 2 chunks +5 lines, -0 lines 0 comments Download
M web.xml View 2 chunks +0 lines, -8 lines 1 comment Download

Messages

Total messages: 6
felix8a
13 years, 9 months ago (2012-06-17 14:58:11 UTC) #1
kpreid1
On Jun 17, 2012, at 10:58, felix8a@gmail.com wrote: > 2. In some cases, IE will ...
13 years, 9 months ago (2012-06-17 15:07:36 UTC) #2
felix8a
> How about including code comments explaining the hazard, particularly for the > ";" test ...
13 years, 9 months ago (2012-06-17 17:19:53 UTC) #3
ihab.awad
lgtm++ -- just a little comment / suggestion. http://codereview.appspot.com/6304091/diff/4001/web.xml File web.xml (left): http://codereview.appspot.com/6304091/diff/4001/web.xml#oldcode23 web.xml:23: <servlet-class>com.google.caja.ancillary.servlet.MainServlet</servlet-class> ...
13 years, 9 months ago (2012-06-20 22:55:36 UTC) #4
felix8a
On 2012/06/20 22:55:36, ihab.awad wrote: > lgtm++ -- just a little comment / suggestion. > ...
13 years, 9 months ago (2012-06-20 23:08:08 UTC) #5
felix8a
13 years, 9 months ago (2012-06-20 23:09:06 UTC) #6
@r4928
Sign in to reply to this message.

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