Integer-underflow leads to heap over-read in TFTP implementation
该报告还没有中文解读。
原文摘录
摘自原文(1675 字符中的一小部分)
libcurl on commit 3ee1d3b573e6ea36fb478dbd0d9913483b900928 contains a vulnerability in its TFTP implementation that can cause curl or a libcurl-user to send heap memory beyond the bounds of an allocated chunk to a malicious TFTP server.
原文中的代码
if(strlen(filename) > (state->blksize - strlen(mode) - 4)) {
// [...]
}
curl_msnprintf((char *)state->spacket.data + 2,
state->blksize,
"%s%c%s%c", filename, '\0', mode, '\0');
sbytes = 4 + strlen(filename) + strlen(mode);
// [...]
senddata = …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @z2_ · 版权归作者与 curl 所有