You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/01/20 12:14:12 UTC

DO NOT REPLY [Bug 48577] New: vulnerability in DefaultServlet

https://issues.apache.org/bugzilla/show_bug.cgi?id=48577

           Summary: vulnerability in DefaultServlet
           Product: Tomcat 6
           Version: 6.0.20
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: naviton@gmail.com


when you try to import an inexisting page with js fragments in url parameters
like

http://.../page.jsp?paramName="<script>alert('BT_XSS')</script>">&param2=2...
the following content is inserted into response:
"The requested resource ({URL ABOVE}) is not available."
the content is not encoded so js code from url is being executed

i think DefaultServlet should do smth like

response.getWriter().write(sm.getString("defaultServlet.missingResource",
  urlEncoder.encode(requestUri)));
but html- or xml- encoding might be better

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48577] vulnerability in DefaultServlet

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48577

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-02-22 21:02:20 UTC ---
This has been fixed in 6.0.x and will be included in 6.0.25 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48577] vulnerability in DefaultServlet

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48577

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-02-02 10:03:23 GMT ---
I wouldn't class this as a vulnerability as it requires both a bug (missing
page) in the app and the app to pass on request parameters to the included page
without validating them.

Regardless, I have added HTML filtering so the output isn't corrupted.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48577] vulnerability in DefaultServlet

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48577

--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> 2010-03-03 17:25:59 UTC ---
Fixed in 5.5 in r918592, will be in 5.5.29 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org