Use-after-free when POST body buffer is freed before transfer
该报告还没有中文解读。
原文摘录
摘自原文(7660 字符中的一小部分)
Summary: I locally reproduced a heap use-after-free in libcurl by setting `CURLOPT_POSTFIELDSIZE` and `CURLOPT_POSTFIELDS` to a heap buffer and then freeing that buffer before `curl_easy_perform`. AddressSanitizer (ASan) reports a heap-use-after-free read during the request send path. This …
原文中的代码
cmake -S . -B build-asan \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=ON \
-DCURL_USE_LIBPSL=OFF \
-DCMAKE_C_FLAGS='-fsanitize=address -fno-omit-frame-pointer' \
-DCMAKE_SHARED_LINKER_FLAGS='-fsanitize=address' \ …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有