elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
22 Marzo 2010, 06:47  


Temas destacados: [BLOG] Advisory: ffmpeg puede grabar X de cualquier usuario


+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderadores: Anon, berz3k)
| | |-+  90% de los programas hechos en php tienen vuln de Full Path Disclosure
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Imprimir
Autor Tema: 90% de los programas hechos en php tienen vuln de Full Path Disclosure  (Leído 4564 veces)
Crack_X
Anti-War
Colaborador

Desconectado Desconectado

Mensajes: 2.323


Peace & Love


Ver Perfil WWW
90% de los programas hechos en php tienen vuln de Full Path Disclosure
« en: 18 Mayo 2006, 00:12 »

http://www.securityfocus.com/archive/1/434003/30/30/threaded

Citar
:Introduction:

Normally one of the last steps when accessing to a web-server is to find the url where the web is installed (more common in RFD).

This may be a hard step, if the RPD is the only bug in that server, but PHP programs have functions that unexpectedly can return lots of errors.

**** ATTENTION ****

This is a design Error made by the programmers of the affected php programms, PHP language by it is safe.

*******************

Normally a Full Path Disclosure is not dangerous, but in this case the 90% of the programs written in PHP are vulnerable.

This is a list of 21 tested programs, in their last release at 13/05/06, 19 are vulnerable:

-paFileDB - Affected

-PhpWiki - Affected (GET Data)

-CuteNews - Affected (GET Data)

-SMF - Affected (GET POST & COOKIE)

-phpBB - Not Affected

-phpNuke - Affected

-myBB - Affected (POST Data)

-phpMyAdmin - Affected

-PHProxy - Affected (Cookie & Post Data)

-phpSurveyor - Affected

-vBulletin - Affected (POST Data)

-PunBB - Affected (POST Data)

-XMB - Affected (just some files)

-IPB - Not Affected (some cases)

-Quick Forum - Affected

-FreeScene - Affected (POST Data)

-EBB - Affected (just some files)

-tinyBB - Affected (no filters xD)

-SciELO - Affected (GET Data)

-XOOPS - Affected (POST Data)

-SquirrelMail- Affected

The design-error AMAZINGLY USED is when you parse an Array into a function that spect a STRING.

The mainly bug in PHP found was:

PHPSESSID *or equivalent* equal to a null-array.

when calling the function session_start(); will return an error like:

Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /%path%/test.php on line 3

** NOTE **

This error also appears when calling with no value (that also bypass filters).

This will also bypass all cleaning functions as:

-htmlentities

-urlencode

-etc..

returning "specting T_STRING" error.

:Solution:

The only way to detect is to add to your filter the condition is_array().

Also, you have to clean with this all parameters incoming from $_REQUEST(cookie,get and post)

:Other Solution:

Disabling all errors and warnings in php.ini

:Dangereous?:

No, but a Path Disclosure can reveal sensitive information.

:Impact:

The path may contain the username of the account, includes file and path, version of software, drive were web is installed, etc..

:Note:

I repeat. THIS IS NOT DANGEROUS, its only an aditional help you are giving to hackers that already have access to your server.

:Research made by:

sirdarckcat

elhacker.net

Publicado por Sirdarckcat durante los dias off  :P
En línea

Shit loads of money spend to show us wrong from right. Say no to war


Yasser Has Things To Say
WarZone
Isirius
Ex-Staff

Desconectado Desconectado

Mensajes: 2.498



Ver Perfil
Re: 90% de los programas hechos en php tienen vuln de Full Path Disclosure
« Respuesta #1 en: 23 Mayo 2006, 17:40 »

Lastima que este en ingles no se ingles intentare traducirlo haber que tal.  :-(
En línea
Crack_X
Anti-War
Colaborador

Desconectado Desconectado

Mensajes: 2.323


Peace & Love


Ver Perfil WWW
Re: 90% de los programas hechos en php tienen vuln de Full Path Disclosure
« Respuesta #2 en: 24 Mayo 2006, 20:08 »

Basicamente dice que al pasarle un array a ciertas funciones devolvera un error que 98% de las veces es un path disclosure. Esto es debido a la manera que las funciones se comportan en php y se soluciona con una verificacion de si lo que estamos pasando es un array o no con la funcion is_array() .
En línea

Shit loads of money spend to show us wrong from right. Say no to war


Yasser Has Things To Say
WarZone
sirdarckcat
Absolutamente no es (por ningun motivo):
CoAdmin
*****
Desconectado Desconectado

Mensajes: 6.392


xDDD


Ver Perfil WWW
Re: 90% de los programas hechos en php tienen vuln de Full Path Disclosure
« Respuesta #3 en: 25 Mayo 2006, 05:36 »

bueno, al parecer algunos programadores de PHP me han respondido con soluciones..

una es, usando como error_handler un archivo de texto usando el modificador de tiempo de ejecución... pero aun asi sale el bug.. pero detendras el de PHPSESSID

otra es haciendo que los strings sean tomados como arrays, recompilando apache.. xD

otro que es super interesante, menciono que si antes de usar el session_start usas regenerate_id evitas ese problema.. pero igual, con funciones que esperan texto y reciben un array, hay problemas.

Saludos!!

PD. vBulletin Board no es vulnerable al full-path-disclosure, solo es vulnerable a Path-Disclosure, al parecer (yo no me habia fijado) tienen un filtro que quita la ruta del foro..

En línea

Páginas: [1] Ir Arriba Imprimir 
Ir a:  





Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

Yashira.org    Videojuegos    indetectables.net    Seguridad Informatica Colombia    Indejuegos    Internet móvil

Noticias Informatica    Seguridad Informática    ADSL    eNYe Sec    Seguridad Wireless    Underground México    Biblioteca de Seguridad

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC