Slackware Information for VU#549142

Apache mod_alias vulnerable to buffer overflow via crafted regular expression

Status

Affected

Vendor Statement

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


[slackware-security]  apache security update (SSA:2003-308-01)

Apache httpd is a hypertext transfer protocol server, and is used
by over two thirds of the Internet's web sites.


Upgraded Apache packages are available for Slackware 8.1, 9.0, 9.1,
and -current.  These fix local vulnerabilities that could allow users
who can create or edit Apache config files to gain additional
privileges.  Sites running Apache should upgrade to the new packages.


In addition, new mod_ssl packages have been prepared for all platforms,
and new PHP packages have been prepared for Slackware 8.1, 9.0, and
- -current (9.1 already uses PHP 4.3.3).  In -current, these packages
also move the Apache module directory from /usr/libexec to
/usr/libexec/apache.  Links for all of these related packages are
provided below.


More details about the Apache issue may be found in the Common
Vulnerabilities and Exposures (CVE) database:


  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542


Here are the details from the Slackware 9.1 ChangeLog:
+--------------------------+
Mon Nov  3 20:06:29 PST 2003
patches/packages/apache-1.3.29-i486-1.tgz:  Upgraded to apache-1.3.29.
 This fixes the following local security issue:
   o CAN-2003-0542 (cve.mitre.org)
     Fix buffer overflows in mod_alias and mod_rewrite which occurred if
     one configured a regular expression with more than 9 captures.
 This vulnerability requires the attacker to create or modify certain
 Apache configuration files, and is not a remote hole.  However, it could
 possibly be used to gain additional privileges if access to the Apache
 administrator account can be gained through some other means.  All sites
 running Apache should upgrade.
 (* Security fix *)
+--------------------------+



WHERE TO FIND THE NEW PACKAGES:
+-----------------------------+


Updated packages for Slackware 8.1:
ftp://ftp.slackware.com/pub/slackware/slackware-8.1/patches/packages/apache-1.3.29-i386-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-8.1/patches/packages/mod_ssl-2.8.16_1.3.29-i386-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-8.1/patches/packages/php-4.3.3-i386-1.tgz


Updated packages for Slackware 9.0:
ftp://ftp.slackware.com/pub/slackware/slackware-9.0/patches/packages/apache-1.3.29-i386-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-9.0/patches/packages/mod_ssl-2.8.16_1.3.29-i386-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-9.0/patches/packages/php-4.3.3-i386-1.tgz


Updated packages for Slackware 9.1:
ftp://ftp.slackware.com/pub/slackware/slackware-9.1/patches/packages/apache-1.3.29-i486-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-9.1/patches/packages/mod_ssl-2.8.16_1.3.29-i486-1.tgz


Updated packages for Slackware -current:
ftp://ftp.slackware.com/pub/slackware/slackware-current/slackware/n/apache-1.3.29-i486-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-current/slackware/n/mod_ssl-2.8.16_1.3.29-i486-1.tgz
ftp://ftp.slackware.com/pub/slackware/slackware-current/slackware/n/php-4.3.3-i486-3.tgz



MD5 SIGNATURES:
+-------------+


Slackware 8.1 packages:
1a8190a214c052f0707bd5a6b005a7cd  apache-1.3.29-i386-1.tgz
eb74afbc99295c01d418b576e92e83bb  mod_ssl-2.8.16_1.3.29-i386-1.tgz
b41a44c3ce2a3a09873b5d0930faf4c1  php-4.3.3-i386-1.tgz


Slackware 9.0 packages:
bb34ae622245f57bdca747ac5d8f73cf  apache-1.3.29-i386-1.tgz
c84af5778a5667a06a60a274f2fe1edb  mod_ssl-2.8.16_1.3.29-i386-1.tgz
7660e36f2cfb30cc339734369cca7719  php-4.3.3-i386-1.tgz


Slackware 9.1 packages:
9b494bb3f03cb4a4cb8c28f4fcc76666  apache-1.3.29-i486-1.tgz
938412e01daf55fee37293a5790d907f  mod_ssl-2.8.16_1.3.29-i486-1.tgz


Slackware -current packages:
091c22d398c51fee820dd0d0b7d514e3  apache-1.3.29-i486-1.tgz
cd260439c9f1373329ba2224ace0451d  mod_ssl-2.8.16_1.3.29-i486-1.tgz
cc90540cc07e840e5a0513ffbb308102  php-4.3.3-i486-3.tgz



INSTALLATION INSTRUCTIONS:
+------------------------+


First, stop apache:

# apachectl stop

Next, upgrade these packages as root:

# upgradepkg apache-1.3.29-i486-1.tgz
# upgradepkg mod_ssl-2.8.16_1.3.29-i486-1.tgz
# upgradepkg php-4.3.3-i486-3.tgz


Finally, restart apache:

# apachectl start

Or, if you're running a secure server with mod_ssl:

# apachectl startssl


+-----+

Slackware Linux Security Team
http://slackware.com/gpg-key
security@slackware.com


+------------------------------------------------------------------------+
| HOW TO REMOVE YOURSELF FROM THIS MAILING LIST:                         |
+------------------------------------------------------------------------+
| Send an email to majordomo@slackware.com with this text in the body of |
| the email message:                                                     |
|                                                                        |
|   unsubscribe slackware-security                                       |
|                                                                        |
| You will get a confirmation message back.  Follow the instructions to  |
| complete the unsubscription.  Do not reply to this message to          |
| unsubscribe!                                                           |
+------------------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)


iD8DBQE/qEKrakRjwEAQIjMRArvcAKCMB2tJJVmHitflS/Rc0yG9kksiPACeP0Dd
7HXUeO3O/cg1yufkh2Zvrqg=
=YQdI
-----END PGP SIGNATURE-----

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Vendor References

None

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.