Rechercher
Contactez-nous Suivez-nous sur Twitter En francais English Language
 

Freely subscribe to our NEWSLETTER

Newsletter FR

Newsletter EN

Vulnérabilités

Unsubscribe

Vigil@nce: PHP, file access

October 2009 by Vigil@nce

An attacker can use two vulnerabilities of PHP, in order to access
to a file.

Severity: 1/4

Consequences: data reading, data creation/edition, data deletion

Provenance: user account

Means of attack: no proof of concept, no attack

Ability of attacker: expert (4/4)

Confidence: confirmed by the editor (5/5)

Diffusion of the vulnerable configuration: high (3/3)

Number of vulnerabilities in this bulletin: 2

Creation date: 01/10/2009

IMPACTED PRODUCTS

 PHP

DESCRIPTION OF THE VULNERABILITY

An attacker can use two vulnerabilities of PHP, in order to access
to a file.

The posix_mkfifo() function creates a special file of type "named
pipe". This function does not check the open_basedir configuration
directive. An attacker can therefore create a file outside the web
site. [grav:1/4; BID-36554]

The tempnam() function creates a temporary file with a random name
like "indicated_prefix.random". However, if the attacker uses the
"file.php" prefix, the "file.php.random" file is created. This
file does not have a valid extension, but as it contains ".php",
it can be interpreted as PHP. [grav:1/4; BID-36555]

These vulnerabilities are local or remote depending on the context.

CHARACTERISTICS

Identifiers: BID-36554, BID-36555, VIGILANCE-VUL-9064

http://vigilance.fr/vulnerability/PHP-file-access-9064


See previous articles

    

See next articles


Your podcast Here

New, you can have your Podcast here. Contact us for more information ask:
Marc Brami
Phone: +33 1 40 92 05 55
Mail: ipsimp@free.fr

All new podcasts