POJIA破甲
地图 / PHP OpenSSL zif_openssl_seal() heap overflow (wild memcpy)

PHP OpenSSL zif_openssl_seal() heap overflow (wild memcpy)

内存破坏 / 堆溢出 / #248609

厂商
Internet Bug Bounty
严重程度
低危 · CVSS 5.9
赏金
$500
弱点
堆溢出
研究员
@xixabangm4
披露日期
2019-10-14
资产
PHP
CVE
CVE-2017-11144

该报告还没有中文解读。

原文摘录

摘自原文(16458 字符中的一小部分)
Description: A wild memcpy is discovered in the openssl package included in stable PHP release. During parsing a PEM certificate in openssl_seal(), an invalid key length is produced after parsing, eskl[0] value is -1 after the call to EVP_SealInit(), subsequently causing a heap overflow via a wild …
原文中的代码
<?php 
$argc = $_SERVER['argc'];
$argv = $_SERVER['argv'];

$dir_str = dirname(__FILE__);
$file_str = ($dir_str)."/".$argv[1];
echo "Input file: ".$file_str."\n";

if(!extension_loaded('openssl')) print "openssl not loaded.\n";

$inputstr = file_get_contents($file_str);
print strlen($inputstr) . " …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Internet Bug Bounty 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @xixabangm4 · 版权归作者与 Internet Bug Bounty 所有

同类报告

Heap overflow happen when receiving short length key from ssh server using ssh protocol 1PuTTY (European Commission - DIGIT) · 2019-09-20 · $3,646Remote kernel heap overflowPlayStation · 2022-05-11CVE-2023-38545: socks5 heap buffer overflowcurl · 2023-10-11[3DS][SSL][SDK] Unchecked number of audio channels in Mobiclip SDK leads to RCE in eShop movie playerNintendo · 2020-12-18Buffer Overflow Vulnerability in WebSocket Handlingcurl · 2024-01-02Buffer overflow in req_parsebody method in lua_request.cInternet Bug Bounty · 2022-01-04