Security hardening: missing integer overflow check in curl_load_library()
该报告还没有中文解读。
原文摘录
摘自原文(4608 字符中的一小部分)
Summary A missing integer overflow check was identified in `lib/system_win32.c::curl_load_library()` when calculating the buffer size for a DLL path. On 32-bit Windows builds, the unchecked size calculation can wrap around, resulting in an undersized heap allocation followed by unbounded string …
原文中的代码
UINT systemdirlen = GetSystemDirectory(NULL, 0);
if(systemdirlen) {
size_t filenamelen = _tcslen(filename);
TCHAR *path = curlx_malloc(sizeof(TCHAR) *
(systemdirlen + 1 + filenamelen));
if(path && GetSystemDirectory(path, systemdirlen)) {
_tcscpy(path + …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @y_security · 版权归作者与 curl 所有