POJIA破甲
地图 / str_repeat() sign mismatch based memory corruption

str_repeat() sign mismatch based memory corruption

内存破坏 / Unlabeled / #73255

厂商
Internet Bug Bounty
严重程度
未评级
赏金
—
弱点
Unlabeled
研究员
@cogitoergor00t
披露日期
2015-05-12
资产
PHP
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(3853 字符中的一小部分)
OVERVIEW str_repeat() suffers from a sign mismatch based integer overflow that results in creation of corrupted ZVALs; this condition, depending on the context, can be abused to bypass PHP-level checks or trigger any kind of memory error: a successful exploitation of this issue is likely to produce …
原文中的代码
    /* Initialize the result string */
4907    result_len = input_len * mult;
which then, on line 4930 is passed as argument for RETURN_STRINGL() macro.
It should be noticed that while RETURN_STRINGL() ends up calling ZVAL_STRINGL(), which expects the length argument to be a signed int, result_len …

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

时间线

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

同类报告

touch.mail.ru / e.mail.ru memory content disclosureMail.ru · — · $10,000CWE-195 in ExternalMemoryAccounter::Increase()Node.js · 2025-08-26Memory Exhaustion in CometBFT v1.0.1 via malicious ProposalMessage leads to network-wide denial of serviceCosmos · 2026-01-20CVE-2024-2398: HTTP/2 push headers memory-leakInternet Bug Bounty · 2024-04-22DoS via Unbounded Memory Allocation in sendWebStream on Fastify v5.7.0+ leads to OOM crash when backpressure is ignoredFastify · 2026-03-05Vulnerability Report: Buffer Overflow in Path Sanitizationcurl · 2026-06-16