Bugzilla – Bug 353261
VUL-0: Apache2 CSRF, XSS, Memory Corruption and Denial of Service Vulnerability
Last modified: 2009-10-14 00:27:11 UTC
Date: Fri, 11 Jan 2008 00:40:14 +0100
From: "sp3x" <email@example.com>
Subject: [Full-disclosure] SecurityReason - Apache2 CSRF, XSS,
Memory Corruption and Denial of Service Vulnerability
-----BEGIN PGP SIGNED MESSAGE-----
[Apache2 CSRF, XSS, Memory Corruption and Denial of Service Vulnerability ]
- - Written: 06.12.2007
- - Public: 09.01.2008
SecurityAlert Id: 48
Affected Software: Apache 2.2.x (mod_proxy_balancer)
- --- 0.Description ---
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
Apache has been the most popular web server on the Internet since April 1996. The November 2005 Netcraft Web Server Survey found that more than 70% of the web sites on the Internet are using Apache, thus making it more widely used than all other web servers combined.
mod_proxy_balancer : http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
- From apache site : "Balancer manager enables dynamic update of balancer members. You can use balancer manager to change the balance factor or a particular member, or put it in the off line mode"
balancer-manager is an administrative interface which should only be accessible to trusted users. Due to the fact the SecurityRisk is Low.
- --- 1. Apache2 Cross-Site Request Forgery (CSRF) Vulnerability ---
During the fact that all actions are performed by GET method there exist "CSRF" .
The balancer-manager should use POST for requests which have side-effects
which would significantly mitigate the "CSRF" issue.
- --- 2. Apache2 HTML Injection (XSS) Vulnerability ---
- --- First XSS ---
The HTML Injection (XSS) vulnerability exist in "mod_proxy_balancer.c" .
By Enabling Balancer Manager Support we can trigger XSS vulnerability .
Input passed to the :
"ss" - called ""StickySession Identifier",
"wr" - called "Route",
"rr" - called "Route Redirect",
parametrs in balancer-manager are not properly sanitised leading to execute arbitrary HTML and script code in a victim's browser.
- --- Second XSS ---
Input passed in the URL to "balancer-mamanger" is not properly sanitised leading to execute arbitrary HTML and script code in a victim's browser.
- --- 3. Apache2 Denial of Service Vulnerability ---
The Denial of Service is caused due to an error in the "balancer_handler()" function that manages the loadfactors and member status. When attacker input invalid "bb" variable while editing worker settings leads to "Denial of Service Vulnerability".
- --- 4. Apache2 Memory Corruption ---
The Memory corruption is caused due to an error in the "mod_proxy_balancer" when attacker input in the URL 7390 or 7506 or 7622 "A" chars.
Only for Windows.
- --- 4. Exploit ---
SecurityReason is not going to release a exploit to the general public.
Exploit was provided and tested for Apache Team .
- --- 5. How to fix ---
Update to Apache 2.2.7-dev
- --- 6. References ---
CSRF : http://www.owasp.org/index.php/Testing_for_CSRF
- --- 7. Greets ---
For: Maksymilian Arciemowicz ( cXIb8O3 ), Infospec, pi3, p_e_a, mpp
- --- 8. Contact ---
Email: sp3x [at] securityreason [dot] com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
-----END PGP SIGNATURE-----
Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia - http://secunia.com/
Tracked in #355888
Date: Tue, 11 Mar 2008 14:41:27 +0000
From: Joe Orton <firstname.lastname@example.org>
To: Marcus Meissner <email@example.com>
Cc: firstname.lastname@example.org, Sonja Krause-Harder <email@example.com>
Subject: Re: CVE-2007-6420
Mail-Followup-To: Marcus Meissner <firstname.lastname@example.org>,
email@example.com, Sonja Krause-Harder <firstname.lastname@example.org>
User-Agent: Mutt/1.5.17 (2007-11-01)
On Tue, Mar 11, 2008 at 02:19:52PM +0100, Marcus Meissner wrote:
> I just stumbled across CVE-2007-6420, a cross site request forgery
> in mod_proxy_balancer, and wonder if you plan to issue updates for
> it, or at least have a statement on whether it will be fixed or not.
We hadn't come up with any simple way to fix this type of issue when it
came up originally, but it occurred to me recently that a simple fix is
actually possible. I've posted this for review:
(not yet final patch I guess)
Fixed in 10.3, 10.2, 10.1/sles10, n/a for sles9 (2.2.x only).
Packages submitted, further tracking in bug #355888.
You have fixed CVE-2007-6421 and CVE-2007-6422.
What about CVE-2007-6420 and CVE-2007-6424?
CVE-2007-6423 only affects apache on windows (see original report and http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6423), the discussion about the fix for CVE-2007-6420 has resulted in a final patch yet and I didn't want to wait for that.
s/has resulted/hasn't resulted/ I suppose.
So I'll close this bug as fixed and open a new one with the pending issue so we don't forget about it.
CVE-2007-6424: CVSS v2 Base Score: 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)