COMMAND

    httpd

SYSTEMS AFFECTED

    Systems running Apache 1.1.1


PROBLEM

    Two security problems have been  noticed in the Apache 1.1.1  code
    base:

    1) A hole in mod_cookies which allows outside users to attempt  to
       scribble the memory stack used  by Apache, which could lead  to
       the granting of  shell access to  an outsider as  the same user
       the httpd  children are.   Mod_cookies is  *not* compiled  into
       the  server  by  default  -  if  you  did  not  uncomment   the
       mod_cookies line  in your  Configuration, you  are not  at risk
       from this hole.

    2) mod_dir  contains  a  bug  whereby carefully crafted URL's  can
       cause a  search for  an "index.html"  in a  directory to  fail,
       even  when  one  exists,   thereby  bypassing  index.html   and
       providing an  index of  files in  a directory.   If you  do not
       allow  "Indexes"  as  an  argument  to  "Options"  (the   "All"
       argument  includes  "Indexes",  too)  you  are not at risk from
       this hole.
       Credit for this goes to brian@organic.com, BugTraq and Apache.

SOLUTION

    Apache strongly recommend  users of Apache  1.1.1 do _one_  of the
    following:

    1) Download  a  copy  of  1.1.2 from  http://www.apache.org/dist/,
       compile and install it.
    2) Apply the patches below to their 1.1.1 installations
    3) Discontinue use of the cookie module and turn "indexes" off.
    4) Upgrade to a beta of 1.2


    How to use the attached patches

    Attached to  this message  are two  patches.   Save them into your
    "src" subdirectory of  your Apache installation,  and then do  the
    following:

        patch < mod_cookies_security.patch
        patch < directoryindex_security.patch
        make

    You should then have a new "httpd" executable.

    How to turn off the features

    With  the  following  changes  you  should  not need to modify the
    1.1.1 code.

    1) Recompile the server without mod_cookies.c.  If you're  running
       the default set of modules, this is already left out.
    2) Turn  off  directory  indexing  by  making  sure  none of  your
       "Options" directives say either "Indexes" or "All".

---559023410-1254324197-853117123=:29978
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII;
NAME="mod_cookies_security.patch"
Content-Transfer-Encoding: BASE64
Content-ID: 
Content-Description:

RnJvbTogQWxmcmVkIEh1Z2VyIDxhaHVnZXJAc2VjbmV0LmNvbT4NCkRhdGU6
IEZyaSwgMTAgSmFuIDE5OTcgMjE6NDQ6MDggLTA3M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hciAqZG90Ow0KICAgICAgY29uc3QgY2hh
ciAqcm5hbWUgPSBwc3RyZHVwKHItPnBvb2wsIA0KICAJCQkJZ2V0X3JlbW90
ZV9ob3N0KHItPmNvbm5lY3Rpb24sIHItPnBlcl9kaXJfY29uZmlnLA0KKioq
KioqKioqKioqKioqDQoqKiogMTI4LDEzMyAqKioqDQotLS0gMTI4LDEzNiAt
LS0tDQogICAgICBzdHJ1Y3QgdGltZXpvbmUgdHogPSB7IDAgLCAwIH07DQog
IA0KICAgICAgaWYgKChkb3QgPSBzdHJjaHIocm5hbWUsJy4nKSkpICpkb3Q9
J1wwJzsJLyogRmlyc3QgYml0IG9mIGhvc3RuYW1lICovDQorICAgICBpZiAo
c3RybGVuIChybmFtZSkgPiAyNTUpDQorICAgICAgIHJuYW1lWzI1Nl0gPSAw
Ow0KKyANCiAgICAgIGdldHRpbWVvZmRheSgmdHYsICZ0eik7DQogICAgICBz
cHJpbnRmKG5ld19jb29raWUsIiVzJXMlZCVsZCVkOyBwYXRoPS8iLA0KICAg
ICAgICAgIENPT0tJRV9OQU1FLCBybmFtZSwNCg==
---559023410-1254324197-853117123=:29978
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII;
NAME="directoryindex_security.patch"
Content-Transfer-Encoding: BASE64
Content-ID: 
Content-Description:

RnJvbTogTWFyYyBTbGVta28gPG1hcmNzQHpuZXAuY29tPg0KRGF0ZTogU2F0
LCAxMSBKYW4gMTk5Nw0KDQoNClRoaXMgcGF0Y2ggZml4ZXMgYSBwcm9ibGVt
IGluIEFwYWNoZSB3aGVyZWJ5IGNhcmVmdWxseSBjcmFmdGVkIFVSTCdzDQpj
b3VsZCBjYXVzZSBhbiBlcnJvciBmb3IgdGhlIHNlYXJjaCBmb3IgYW4gaW5k
ZXguaHRtbCBpbiBhIHBhcnRpY3VsYXINCmRpcmVjdG9yeSwgdGh1cyBwb3Nz
aWJseSBieXBhc3NpbmcgdGhlIGZpbGUgYW5kIHJldHVybmluZyBhbiBpbmR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ItPmZpbGVuYW1lKTsNCisgCSAg
ICByZXR1cm4gRk9SQklEREVOOw0KICAJfQ0KKyAjZW5kaWYNCiAgICAgIH0N
CisgDQorICAgICByZXR1cm4gT0s7DQogIH0NCiAgDQogIGludCBkaXJlY3Rv
cnlfd2FsayAocmVxdWVzdF9yZWMgKnIpDQoqKioqKioqKioqKioqKioNCioq
KiAyNjEsMjY3ICoqKioNCiAgDQogICAgICBubzJzbGFzaCAodGVzdF9maWxl
bmFtZSk7DQogICAgICBudW1fZGlycyA9IGNvdW50X2RpcnModGVzdF9maWxl
bmFtZSk7DQohICAgICBnZXRfcGF0aF9pbmZvIChyKTsNCiAgICAgIA0KICAg
ICAgaWYgKFNfSVNESVIgKHItPmZpbmZvLnN0X21vZGUpKSArK251bV9kaXJz
Ow0KICANCi0tLSAyNzksMjg4IC0tLS0NCiAgDQogICAgICBubzJzbGFzaCAo
dGVzdF9maWxlbmFtZSk7DQogICAgICBudW1fZGlycyA9IGNvdW50X2RpcnMo
dGVzdF9maWxlbmFtZSk7DQohICAgICByZXMgPSBnZXRfcGF0aF9pbmZvIChy
KTsNCiEgICAgIGlmIChyZXMgIT0gT0spIHsNCiEgCXJldHVybiByZXM7DQoh
ICAgICB9DQogICAgICANCiAgICAgIGlmIChTX0lTRElSIChyLT5maW5mby5z
dF9tb2RlKSkgKytudW1fZGlyczsNCiAgDQo=
---559023410-1254324197-853117123=:29978--