exploit the possibilities
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:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close