POJIA破甲
地图 / Heap Buffer Overflow (READ: 4) in phar_parse_pharfile

Heap Buffer Overflow (READ: 4) in phar_parse_pharfile

内存破坏 / 缓冲区越界读 / #477344

厂商
Internet Bug Bounty
严重程度
中危 · CVSS 7.5
赏金
—
弱点
缓冲区越界读
研究员
@cy1337
披露日期
2020-10-10
资产
PHP
CVE
CVE-2018-20783

该报告还没有中文解读。

原文摘录

摘自原文(5458 字符中的一小部分)
Phar files with __HALT_COMPILER(); in unexpected places can lead to a buffer overrun. This is something I found while fuzzing with AFL using an ASAN instrumented PHP.
原文中的代码
USE_ZEND_ALLOC=0 php -d phar.readonly=0 -r "var_dump(new Phar('php-oob4.phar',0,'project.phar'));"

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

时间线

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

同类报告

Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflowInternet Bug Bounty · 2020-10-12 · $1,500CVE-2024-7264: ASN.1 date parser overreadcurl · 2024-08-01CVE-2024-7347: Buffer overread in the ngx_http_mp4_moduleInternet Bug Bounty · 2024-08-27 · $2,142apache access.log leakage via long request on https://rapida.ru/QIWI · —CVE-2025-9086: Out of bounds read for cookie pathcurl · 2025-09-10Heap-Buffer-Overread in contains_whitespace when calling parser_validate after supplying a maliciously crafted buffer to parser_parseCosmos · 2024-11-19 · $2,000