Tomcat .jsp Cross-Site Scripting Vulnerability

2001-03-17 Thread TAKAGI, Hiromitsu
I found a cross-site scripting vulnerability in Tomcat 3.2.1. Accessing the following URL, the JavaScript code will be executed by the browser on the server's domain. http://any-server-Tomcat-running-on/jsp-mapped-dir/SCRIPTalert(document.cookie)/SCRIPT.jsp This vulnerability is quite similar

Re: Question - Re: cvs commit: DefaultCMSetter.java

2001-03-17 Thread Kazuhiro Kazama
Arieh, From: Arieh Markel [EMAIL PROTECTED] Subject: Question - Re: cvs commit: DefaultCMSetter.java Date: Fri, 16 Mar 2001 17:34:30 -0700 (MST) Message-ID: [EMAIL PROTECTED] Shouldn't the charset be according to the Locale and Charset of the request that was passed ? I think there are three

tomcat-4 Tester broken?

2001-03-17 Thread Steve Downey
It looks like the tester webapp in tomcat 4 was broken with last nights servlet api changes? Searching for build.xml ...Buildfile: C:\Build\Tomcat-4\jakarta-tomcat-4.0-base\tester\build.xml build-prepare: build-static: build-main: [javac] Compiling 1 source file to

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util FileUtil.java

2001-03-17 Thread arieh
arieh 01/03/16 15:39:52 Modified:src/share/org/apache/tomcat/util Tag: tomcat_32 FileUtil.java Log: Add support for docbase localized lookups. Revision ChangesPath No revision No revision

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/request StaticInterceptor.java

2001-03-17 Thread arieh
arieh 01/03/16 15:42:00 Modified:src/share/org/apache/tomcat/request Tag: tomcat_32 StaticInterceptor.java Log: Add support for docbase localization lookup. Revision ChangesPath No revision No

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Context.java

2001-03-17 Thread arieh
arieh 01/03/16 15:43:56 Modified:src/share/org/apache/tomcat/core Tag: tomcat_32 Context.java Log: Add support for 'docbase' localization lookup to the getRealPath() method. Preserve backwards compatibility on the getRealPath(path, loc, loc) call. Revision ChangesPath

TC4.0b1 - getting apache connector to connect

2001-03-17 Thread David Wall
I'm trying to get catalina working with Apache 1.3.19 on Linux, but for I've got something misconfigured. It cannot find my 'pub' webapp based on this error: Application pub with path /pub/ not found Here's how it's defined in server.xml: !-- Define an Apache-Connector Service -- Service

[PATCH] src/tester/org/apache/tester/WrapperFilter.java fixes for new Filter API

2001-03-17 Thread Steve Downey
changed setFilter to init, removed getFilter and added an [empty] destroy() This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this

Re: [VOTE] New Committer: Amy Roh

2001-03-17 Thread Pier P. Fumagalli
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, maybe a better place to meet would be tomcat-dev, isn't it ? I'm sure Dan Milstein would enjoy a French vacation ( I would ), but so far mod_jk was developed by a larger group on tomcat-dev. Dan and Henri are doing most of the work

Re: Merging mod_jk/mod_webapp (was [VOTE] New Committer: Amy Roh)

2001-03-17 Thread Pier P. Fumagalli
Dan Milstein [EMAIL PROTECTED] wrote: It would be nice to have this dicussion on tomcat-dev. I do think I have a useful understanding of mod_jk to offer, but I'm not going to be in France (and I'm not on the private thread)... Not that we have to have that conversation now, but I would

Re: new cocoon, tomcat website

2001-03-17 Thread Pier P. Fumagalli
David Abrams [EMAIL PROTECTED] wrote: Hey, Check out: http://www.truelook.com It is running off Tomcat, Apache, Cocoon! We're using Ant for builds too. Take Care, David Abrams Director of Technology Perceptual Robotics, Inc. That is _way_cool_... Thank you for notifying us...

Re: tomcat-4 Tester broken?

2001-03-17 Thread Craig R. McClanahan
On Sat, 17 Mar 2001, Steve Downey wrote: It looks like the tester webapp in tomcat 4 was broken with last nights servlet api changes? Yep. Will fix that today. Craig

Re: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/request StaticInterceptor.java

2001-03-17 Thread David Rees
On Fri, Mar 16, 2001 at 11:42:00PM -, [EMAIL PROTECTED] wrote: arieh 01/03/16 15:42:00 Modified:src/share/org/apache/tomcat/request Tag: tomcat_32 StaticInterceptor.java Log: Add support for docbase localization lookup. Maybe I'm missing

RE: new cocoon, tomcat website

2001-03-17 Thread David Abrams
Note, we're webcasting NBA Finals, PGA Masters, World Series, Oscars, Grammies, etc. We should be a good test for scalability. :) Keep those bug fixes comming! David -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 12:21 PM

cvs commit: jakarta-tomcat-4.0/tester/src/tester/org/apache/tester WrapperFilter.java

2001-03-17 Thread craigmcc
craigmcc01/03/17 10:50:33 Modified:tester/src/tester/org/apache/tester WrapperFilter.java Log: Adapt to the changes to the Filter API. Revision ChangesPath 1.3 +23 -26 jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/WrapperFilter.java Index:

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core Constants.java StandardWrapper.java

2001-03-17 Thread craigmcc
craigmcc01/03/17 11:46:42 Modified:catalina/src/share/org/apache/catalina/core Constants.java StandardWrapper.java Log: Modify the special case treatment of loading the Jasper servlet so that it works when you use jsp-file declarations in web.xml, as well

cvs commit: jakarta-tomcat-4.0/tester/web/WEB-INF web.xml

2001-03-17 Thread craigmcc
craigmcc01/03/17 11:48:22 Modified:tester/src/bin tester.xml tester/web/WEB-INF web.xml Added: tester/web Xerces00.jsp Xerces02.jsp Log: Add some additional tests to access JSP pages both before and after a servlet that uses Xerces itself. Revision

Re: cvs commit:jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/coreStandardWrapperValve.java

2001-03-17 Thread Jon Stevens
on 3/17/01 12:07 PM, "[EMAIL PROTECTED]" [EMAIL PROTECTED] wrote: +private String filter(String message) { Not sure if you have to do this for private methods, but you might want to make that final in order to make sure that the JVM inlines the method. stupid question of the day Also,

Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/coreStandardWrapperValve.java

2001-03-17 Thread Craig R. McClanahan
On Sat, 17 Mar 2001, Jon Stevens wrote: on 3/17/01 12:07 PM, "[EMAIL PROTECTED]" [EMAIL PROTECTED] wrote: +private String filter(String message) { Not sure if you have to do this for private methods, but you might want to make that final in order to make sure that the JVM inlines

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util RequestUtil.java

2001-03-17 Thread craigmcc
craigmcc01/03/17 12:52:50 Modified:src/share/org/apache/tomcat/context Tag: tomcat_32 DefaultCMSetter.java src/share/org/apache/tomcat/util Tag: tomcat_32 RequestUtil.java Log: For Tomcat 3.2, fix the security

RE: Missing timeout in PoolTcpEndpoint ?

2001-03-17 Thread Tal Dayan
I just submitted a bug for it that describes how to reproduce it: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006 Tal

Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardWrapperValve.java

2001-03-17 Thread Remy Maucherat
You can prove that it is not related to JSP by trying *any* URI that includes JavaScript code, and triggers a 404, such as: http://localhost:8080/examples/SCRIPTalert(document.cookie)/SCRIPT.xyz The fix is to filter the message string included in the response, so that characters

Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/coreStandardWrapperValve.java

2001-03-17 Thread Craig R. McClanahan
On Sat, 17 Mar 2001, Remy Maucherat wrote: You can prove that it is not related to JSP by trying *any* URI that includes JavaScript code, and triggers a 404, such as: http://localhost:8080/examples/SCRIPTalert(document.cookie)/SCRIPT.xyz The fix is to filter the message

Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardWrapperValve.java

2001-03-17 Thread Remy Maucherat
On Sat, 17 Mar 2001, Remy Maucherat wrote: You can prove that it is not related to JSP by trying *any* URI that includes JavaScript code, and triggers a 404, such as: http://localhost:8080/examples/SCRIPTalert(document.cookie)/SCRIPT.xyz The fix is to filter the

Tester results

2001-03-17 Thread Steve Downey
On Windows 2000 I'm getting failures on tester: FAIL [GET /examples/..] java.io.FileNotFoundException: http://localhost:8080/examples/.. FAIL [GET /tester/Session03] Expected data 'Session03 PASSED', got data 'Session03 FAILED - No existing session 43687632F49215A2A42615B6D472' FAIL

[Fwd: Tomcat 3_3-M2 URL Session Rewriting?]

2001-03-17 Thread Thomas Riemer
Let me correct this bug report - it looks like something broke between 3.3 m1 and 3.3 m2. Authentication always brings up a "Basic" Authentication form, regardless of my authentication method specified. My first guess is that the bug was introduced in AccessInterceptor.java. Looking at the

Re: Tester results

2001-03-17 Thread Craig R. McClanahan
On Sat, 17 Mar 2001, Steve Downey wrote: On Windows 2000 I'm getting failures on tester: FAIL [GET /examples/..] java.io.FileNotFoundException: http://localhost:8080/examples/ http://localhost:8080/examples/ .. This is a Tomcat 4.0 bug (Windows-specific). It works (at least for me) on

Jikes Compiler Patch

2001-03-17 Thread Thomas Riemer
Here's a patch to fix the jikes compiler code in Jasper - against tomcat 3.3 m2 It looks like there is something OS specific in the original code. Its not clear to me that my fix would work under all platforms. I'll leave that to greater minds. It looks like under some OS, extra quotes are

cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler TldLocationsCache.java

2001-03-17 Thread craigmcc
craigmcc01/03/17 21:32:13 Modified:catalina/src/share/org/apache/catalina/core LocalStrings.properties StandardContext.java StandardWrapper.java jasper/src/share/org/apache/jasper/compiler

cvs commit: jakarta-tomcat-4.0/tester/src/tester/org/apache/tester ErrorPage02.java ErrorPage04.java

2001-03-17 Thread craigmcc
craigmcc01/03/17 22:12:55 Modified:tester/src/tester/org/apache/tester ErrorPage02.java ErrorPage04.java Log: Make sure that the servlet name gets passed to error pages, along with the other specified attributes, per the recent servlet API changes.

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets DefaultServlet.java

2001-03-17 Thread remm
remm01/03/17 22:36:14 Modified:catalina/src/share/org/apache/catalina/servlets DefaultServlet.java Log: - Changes most of the methods in DefaultServlet from private to protected, so that it's easier to extend its functionality. The patch is big,

[PATCH] Fun with tag pools

2001-03-17 Thread Casey Lucas
Ok, here's the patch. The attached files apply to tc 3.3. They allow tag handler pooling per the jsp spec. The files come with a few questions and comments. Patch info: -- TagPoolManagerInterceptor.java should be placed in src/facade22/org/apache/tomcat/facade TagPoolManager.java