POJIA破甲
地图 / CVE-2018-6797: A crafted regular expression can cause a heap buffer write overflow in Perl 5 giving a remote attacker control over bytes written

CVE-2018-6797: A crafted regular expression can cause a heap buffer write overflow in Perl 5 giving a remote attacker control over bytes written

内存破坏 / 堆溢出 / #337986

厂商
Internet Bug Bounty
严重程度
中危 · CVSS 7
赏金
—
弱点
堆溢出
研究员
@geeknik
披露日期
2018-05-19
资产
Perl (Legacy)
CVE
CVE-2018-6797

该报告还没有中文解读。

原文摘录

摘自原文(2899 字符中的一小部分)
An attacker supplies a regular expression containing one or more `\xDF` characters after an escape putting the regexp into unicode matching mode, such as a `\N{}` escape. Each `\xDF` character adds one byte of overflow, and any other text in the regular expression is written in order, providing the …
原文中的代码
==28186==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60700000ac58 at pc 0x000000846c2d bp 0x7ffe716bc7f0 sp 0x7ffe716bc7e0
WRITE of size 1 at 0x60700000ac58 thread T0
    #0 0x846c2c in S_regatom /root/perl/regcomp.c:13652
    #1 0x8587f6 in S_regpiece /root/perl/regcomp.c:11708 …

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

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @geeknik · 版权归作者与 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