-----BEGIN PGP SIGNED MESSAGE-----
AUSCERT External Security Bulletin Redistribution
ESB-2000.315 -- NetBSD Security Advisory 2000-014
Global-3.55 allows world-wide executable cgi
27 October 2000
AusCERT Security Bulletin Summary
Vendor: NetBSD Package Collection
Operating System: NetBSD
Impact: Execute Arbitrary Code/Commands
Access Required: Remote
- --------------------------BEGIN INCLUDED TEXT--------------------
- -----BEGIN PGP SIGNED MESSAGE-----
NetBSD Security Advisory 2000-014
Topic: Global-3.55 allows world-wide executable cgi.
Version: any before 4.01
Severity: permits remote execution of arbitrary shell commands
When using the CGI interface of the Global v3.55 package, it's
possible to execute random commands.
The exploit of this is possible due to insufficient handling of quoted
or escaped characters in this version, and command line arguments that
are then handed off to shell commands.
Solutions and Workarounds
To find out if you have the problematic version of the global package
pkg_info -e global
If this displays "global-3.55" or below, you are vulnerable. If
this displays "global-4.0.1" or higher, your system is not vulnerable
either. If this displays no output at all, it means you don't have
the "global" package installed, and your system is not vulnerable.
If your system is vulnerable, the best solution is to upgrade to the latest
version in pkgsrc, which is 4.0.1 as of this writing.
There are precompiled binary packages of global for some NetBSD ports
If no precompiled binary is available for your platform, you can build
your own from source. First, make sure that you have a version of the
pkgsrc hierarchy from October 9th 2000 or later. (See
http://www.netbsd.org/Sites/net.html for ways to obtain NetBSD, and
pkgsrc, its packages collection.)
You can then install the new version of the package:
cd pkgsrc/devel/global; make clean; make install
For more information on how to rebuild a package from source for your
architecture, see ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/README
To render the vulnerability unexploitable, modify the file
'HTML/cgi-bin/global.cgi' around line 35, and change the generated HTML
$pattern =~ s/'//g; # to shut security hole
$pattern =~ s/"//g; # to shut security hole
The problem was reported in NetBSD PR 11165 by the author of global,
Shigio Yamaguchi <email@example.com>. The package updated by as a
collaboration of Hubert Feyrer <firstname.lastname@example.org> and David Brownlee
<email@example.com>. Hubert Feyrer also drafted this security advisory.
20001009 First draft, after the pkg was committed by abs.
Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.
Copyright 2000, The NetBSD Foundation, Inc. All Rights Reserved.
$NetBSD: NetBSD-SA2000-014.txt,v 1.4 2000/10/24 14:50:55 agc Exp $
- -----BEGIN PGP SIGNATURE-----
- -----END PGP SIGNATURE-----
- --------------------------END INCLUDED TEXT--------------------
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the original authors to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Internet Email: firstname.lastname@example.org
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for emergencies.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----