Buffer Overflow Risk in Curl_inet_ntop and inet_ntop4
该报告还没有中文解读。
原文摘录
摘自原文(8515 字符中的一小部分)
*Curl is a software that I love and is an important tool for the world. * *If my report doesn't align, I apologize for that.*
原文中的代码
#include <stdio.h>
#include <string.h>
#include <errno.h>
static char *inet_ntop4(const unsigned char *src, char *dst, size_t size) {
char tmp[sizeof("255.255.255.255")];
snprintf(tmp, sizeof(tmp), "%d.%d.%d.%d",
src[0], src[1], src[2], src[3]);
if (strlen(tmp) >= size) { …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @b3fbcf5debe00185bbe06c0 · 版权归作者与 curl 所有