Telnet Suboption Buffer Pointer Underflow in lib/telnet.c leads to Out-of-Bounds Read
内存破坏 / Buffer Under-read / #3480712
该报告还没有中文解读。
原文摘录
摘自原文(4654 字符中的一小部分)
A buffer pointer underflow vulnerability exists in curl's telnet protocol handler (`lib/telnet.c`). When processing telnet suboptions in the `CURL_TS_SE` state, the code unconditionally decrements the suboption buffer pointer by 2 (`subpointer -= 2`), even when the `CURL_SB_ACCUM` macro skips …
原文中的代码
#define CURL_SB_ACCUM(x, c) \
do { \
if(x->subpointer < (x->subbuffer + sizeof(x->subbuffer))) \
*x->subpointer++ = (c); \
} while(0)默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @stif · 版权归作者与 curl 所有