Integer Overflow to Heap Overflow in DoH Response Handling
该报告还没有中文解读。
原文摘录
摘自原文(4845 字符中的一小部分)
Summary: An integer overflow vulnerability exists in the `doh_probe_write_cb` function in `lib/doh.c`. This function is used as a write callback for DNS-over-HTTPS (DoH) responses. When a malicious DoH server sends a response with a crafted size, the multiplication of `size` and `nmemb` can …
原文中的代码
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define CURL_STATICLIB
#include <curl/curl.h>
// --- From curl/lib/curlx/dynbuf.h ---
struct dynbuf {
char *bufr;
size_t leng;
size_t allc;
size_t toobig;
};
#define …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @asdkjhasldkjahslfdkjfa · 版权归作者与 curl 所有