what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

FS-072800-9-BEA.txt

FS-072800-9-BEA.txt
Posted Jul 30, 2000
Authored by Saumil Shah | Site foundstone.com

Foundstone Security Advisory - Two show code vulnerabilities exist with BEA's WebLogic 5.1.0 allowing an attacker to view the source code of any file within the web document root of the web server. Depending on web application and directory structure attacker can access and view unauthorized files. Proof of concept URL's included.

tags | exploit, web, root, vulnerability, proof of concept
SHA-256 | a1739693599c1bd00c0168ba2ed4568341d3855b737c21cb6ff4a6e8b88a66b3

FS-072800-9-BEA.txt

Change Mirror Download
                            Foundstone, Inc.
http://www.foundstone.com
"Securing the Dot Com World"

Security Advisory

BEA's WebLogic force handlers show code vulnerability

----------------------------------------------------------------------
FS Advisory ID: FS-072800-9-BEA

Release Date: July 28, 2000

Product: WebLogic

Vendor: BEA Systems (http://www.beasys.com)

Vendor Advisory: Contact the vendor

Type: Forced Handlers: Show code vulnerability

Severity: Low to Medium (depending on JSP/JHTML coding
practices & web application security)

Author: Saumil Shah (saumil.shah@foundstone.com)
Shreeraj Shah (shreeraj.shah@foundstone.com)

Operating Systems: All operating systems

Vulnerable versions: BEA WebLogic Enterprise 5.1.x
BEA WebLogic Server and Express 5.1.x
BEA WebLogic Server and Express 4.5.x

Foundstone Advisory: http://www.foundstone.com
----------------------------------------------------------------------

Description

Two show code vulnerabilities exist with BEA's WebLogic 5.1.0
allowing an attacker to view the source code of any file
within the web document root of the web server. Depending on
web application and directory structure attacker can access
and view unauthorized files.

Details

1. Viewing unparsed pages by forcibly invoking SSIServlet:
----------------------------------------------------------

Server Side Includes pages are processed by the SSIServlet in
WebLogic.

It is registered in the weblogic.properties file as follows:

weblogic.httpd.register.*.shtml=
weblogic.servlet.ServerSideIncludeServlet

It turns out that the wild card (*) registration can itself be
used as a handler to invoke the SSIServlet via a URL.

Thus, if the file path in the URL is prefixed with /*.shtml/,
one can force that file to be processed by SSIServlet. If used
against other file types such as .jsp and .jhtml, unparsed jsp
and jhtml code can be viewed.

2. Viewing unparsed pages by forcibly invoking FileServlet:
-----------------------------------------------------------

WebLogic comes pre-configured with the ConsoleHelp servlet
being registered to invoke FileServlet, as can be seen from
the following lines in the weblogic.properties file:

# For Console help. Do not modify.
weblogic.httpd.register.ConsoleHelp=
weblogic.servlet.FileServlet
weblogic.httpd.initArgs.ConsoleHelp=\
defaultFilename=/weblogic/admin/help/NoContent.html
weblogic.allow.execute.weblogic.servlet.ConsoleHelp=everyone

Thus, if the file path in the URL is prefixed with
/ConsoleHelp/, it causes WebLogic to invoke FileServlet, which
causes pages to be displayed without being parsed or compiled.

Proof of concept

1. Using *.shtml:

Prefixing the path to web pages with "/*.shtml/" in the URL
causes the file to be displayed since it is processed by
SSIServlet. For example if the URL for a file "login.jsp" is:

http://site.running.weblogic/login.jsp

then accessing

http://site.running.weblogic/*.shtml/login.jsp

would served by SSIServlet and jsp/jhtml code can be seen
in the web browser.

2. Using ConsoleHelp:

Prefixing the path to web pages with "/ConsoleHelp/" in the
URL causes the file to be displayed without being parsed or
compiled. For example if the URL for a file "login.jsp" is:

http://site.running.weblogic/login.jsp

then accessing

http://site.running.weblogic/ConsoleHelp/login.jsp

would cause the unparsed contents of the file to show up in
the web browser.

Solution

Please refer to BEA security advisory BEA00-03.00.

From the vendor (as appears in BEA00-03.00):

(1) Apply the "Show Code" vulnerability patch available from
BEA Technical Support. This patch is available for:

Version: The J-Engine in BEA WebLogic Enterprise 5.1.x
BEA WebLogic Server and Express 5.1.x
BEA WebLogic Server and Express 4.5.x

Action: Contact BEA Technical Support at support@bea.com for
patch.

(2) Once the patch has been applied, review the
weblogic.propertiesfile and ensure that the following changes
have been made:

weblogic.httpd.register.file=weblogic.servlet.FileServlet
weblogic.httpd.initArgs.file=defaultFilename=index.html
weblogic.httpd.defaultServlet=file

should be changed to:

weblogic.httpd.register.*.html=weblogic.servlet.FileServlet
weblogic.httpd.initArgs.*.html=defaultFilename=index.html
weblogic.httpd.defaultServlet=*.html

Future Service Packs for BEA WebLogic Server and Express will
also contain the patch to address this vulnerability.

Credits

We would like to thank BEA Systems for their prompt and
serious reaction to this problem.

Disclaimer

THE INFORMATION CONTAINED IN THIS ADVISORY IS THE COPYRIGHT
(C) 2000 OF FOUNDSTONE, INC. AND BELIEVED TO BE ACCURATE AT
THE TIME OF PRINTING, BUT NO REPRESENTATION OR WARRANTY IS
GIVEN, EXPRESS OR IMPLIED, AS TO ITS ACCURACY OR COMPLETENESS.
NEITHER THE AUTHOR NOR THE PUBLISHER ACCEPTS ANY LIABILITY
WHATSOEVER FOR ANY DIRECT, INDIRECT OR CONQUENTIAL LOSS OR
DAMAGE ARISING IN ANY WAY FROM ANY USE OF, OR RELIANCE PLACED
ON, THIS INFORMATION FOR ANY PURPOSE. THIS ADVISORY MAY BE
REDISTRIBUTED PROVIDED THAT NO FEE IS ASSIGNED AND THAT THE
ADVISORY IS NOT MODIFIED IN ANY WAY.

Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    44 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close