From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,8b1181ccc1af2927,start X-Google-Attributes: gid10d4db,public From: Jeff Uphoff Subject: [linux-alert] NCSA httpd cgi-bin application vulnerability. Date: 1996/03/12 Message-ID: #1/1 X-Deja-AN: 142815092 x-original-date: Fri, 8 Mar 1996 03:15:51 -0500 followup-to: comp.os.linux.misc content-type: text/plain; charset=ISO-8859-1 organization: ? mime-version: 1.0 reply-to: linux-security@tarsier.cv.nrao.edu newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- [ Moderator's note: This is a repost from the linux-alert mailing list; I hope it is useful for you. linux-alert contains warnings about Linux security bugs -- if you're worried about security, you should probably be on the list. I will be picking messages from the list and post them to this group, but I may or may not post all -- for example, I won't be posting CERT announcements, since they are already available in their own group, comp.security.announce. --liw ] If you are running NCSA's httpd WWW server (or, conceivably, someone else's), have compiled the phf.c application found in the NCSA distribution's cgi-src directory, and have installed it into an area designated for cgi-bin applications, please 'chmod a-x' it immediately. (This applies to *at least* the phf.c application as provided with NCSA httpd versions 1.3 and 1.5a-export; I've not inspected the other distributions yet.) Many sites (I've looked around a bit and have had a hit rate of roughly 50% so far, but maybe I'm just "lucky")--including the top-level WWW servers for some large and/or very high-profile domains--appear to have "blindly" installed all of the cgi-src applications provided with NCSA's httpd. The most notable aspect of this particular cgi-bin vulnerability, at least to me, is not so much the vulnerability itself (it's been seen before) but rather its quite widespread nature. This vulnerability allows a remote client to retrieve any world-readable file from the server system, as well as execute commands and create files on the server with the privileges of the euid of the httpd server process. Depending on the server's (mis)configuration, this could conceivably be used as an avenue through which to replace the httpd server binary itself with a trojan--quite possibly to be run as root during the system's next boot cycle. It can also be used, largely independent of the server system's configuration--and rather easily--to gain remote interactive access to the server with the userid that the httpd server runs under. (I'm sure there are lots of other "nifty" possibilities, but I first found out about this a just few waking hours ago and have so far performed only the most basic proof-of-concept exploits.) More details (full disclosure, etc.) to follow on the linux-security list and on Bugtraq.... - --Up. P.S. I'll bet everyone just can't wait for Java! - -- Jeff Uphoff - systems/network admin. | juphoff@nrao.edu National Radio Astronomy Observatory | juphoff@bofh.org.uk Charlottesville, VA, USA | jeff.uphoff@linux.org PGP key available at: http://www.cv.nrao.edu/~juphoff/ -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMUXsWoQRll5MupLRAQETOwQAwxu2wgEKtgunB/OIeBeeA2Y0e76PGxjE 2gDM7Whaaj0yPFmIoFECaCO2ya2R3R++75R1Q73gqeV5+2RGrOpqAYy507MPxLW4 WrgxQ2bWaCigkhwNuuxiGexoL7NUDHqYiaJaueW6zr7D1tAU9Xc8WRCpqejrFv8k uK6ol26aPP8= =/Fk3 -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.