what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

netbsd.2000-014.global

netbsd.2000-014.global
Posted Oct 31, 2000

NetBSD Security Advisory 2000-014 - Global-3.55 and below allows remote users to execute arbitrary commands.

tags | remote, arbitrary
systems | netbsd
SHA-256 | e00899c0e255208ded76f38b9812dad970932a7c963afdc4d518d7ba7d807b8f

netbsd.2000-014.global

Change Mirror Download
-----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


Abstract
========

When using the CGI interface of the Global v3.55 package, it's
possible to execute random commands.


Technical Details
=================

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
installed, type

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
available from:

ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/global/README.html

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
from:

$pattern =~ s/'//g; # to shut security hole

to

$pattern =~ s/"//g; # to shut security hole


Thanks To
=========

The problem was reported in NetBSD PR 11165 by the author of global,
Shigio Yamaguchi <shigio@tamacom.com>. The package updated by as a
collaboration of Hubert Feyrer <hubertf@netbsd.org> and David Brownlee
<abs@netbsd.org>. Hubert Feyrer also drafted this security advisory.


Revision History
================

20001009 First draft, after the pkg was committed by abs.


More Information
================

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-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOfhIrz5Ru2/4N2IFAQEPdgP/QdWcKm2JPQEQzooKzm3776XpX5+2EUZA
T3DV5ca2vkizBH1hBGDq+RQqvKcs96Czh4SiRJ+blM5BR2hGmDqO22Vs8mMafKDU
RXkAlsOBbvSSM1JhYwUXgqIJhYINAzV1Jf+1bnrdRfSglZoiZWqNSXp3NtSREYHM
p2eMLdCCbOc=
=BIQ7
-----END PGP SIGNATURE-----

Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close