str_repeat() sign mismatch based memory corruption
该报告还没有中文解读。
原文摘录
摘自原文(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 所有