CVE-2024-6197: freeing stack buffer in utf8asn1str
内存破坏 / Free of Memory not on the Heap / #2559516
该报告还没有中文解读。
原文摘录
摘自原文(3574 字符中的一小部分)
Libcurl at commit [04739054cdac5a0614fb94e3655e313c03399f35](https://github.com/curl/curl/tree/04739054cdac5a0614fb94e3655e313c03399f35) contains an invalid invocation of `free()` in the function `utf8asn1str()` at …
原文中的代码
static CURLcode
utf8asn1str(struct dynbuf *to, int type, const char *from, const char *end)
{
// --- snip ---
if(type == CURL_ASN1_UTF8_STRING) {
// --- snip ---
}
else {
while(!result && (from < end)) {
char buf[4]; /* decode buffer */ …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @z2_ · 版权归作者与 curl 所有