Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144090 - net-www/apache: mod_alias source disclosure
Summary: net-www/apache: mod_alias source disclosure
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/21490/
Whiteboard: B4 [upstream] Falco
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-16 02:51 UTC by Raphael Marichez (Falco) (RETIRED)
Modified: 2006-08-16 04:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-16 02:51:19 UTC
SA 21490


Software:	Apache 2.0.x
Apache 2.2.x

Description:
Susam Pal has discovered a vulnerability in Apache, which can be exploited by malicious people to bypass certain security restrictions and disclose potentially sensitive information.

The vulnerability is caused due to a canonicalization error in the "mod_alias" module in the handling of case-sensitive alias directive arguments on file systems supporting case-insensitive directory names. This can e.g. be exploited to disclose the source code of applications placed in the "cgi-bin" directory on certain non-default configurations where the ScriptAlias directive references a directory inside the document root by accessing an URL with a capital directory name (e.g. "CGI-BIN").

Example of a vulnerable configuration:
DocumentRoot "[path]/docroot/"
ScriptAlias /cgi-bin/ "/[path]/docroot/cgi-bin"

NOTE: This only affects the Microsoft Windows platform.

The vulnerability has been confirmed in versions 2.0.59 and 2.2.3, and has also been reported in version 2.2.2. Other versions may also be affected.

Solution:
Edit the configuration to ensure that alias directives (e.g. ScriptAlias) references directories outside of the document root.

Provided and/or discovered by:
Susam Pal
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-16 02:56:58 UTC
> NOTE: This only affects the Microsoft Windows platform.

Hmmm? :o)
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-16 03:06:01 UTC
(In reply to comment #1)
> > NOTE: This only affects the Microsoft Windows platform.
> 
> Hmmm? :o)
> 

haha ! thanks :)

Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-16 04:09:29 UTC
Fast security bug handling ;)