Incorrect IPv6 literal parsing leads to validated connection to unexpected https server.
其他弱点 / Improper Handling of URL Encoding (Hex Encoding) / #688048
该报告还没有中文解读。
原文摘录
摘自原文(1986 字符中的一小部分)
Summary: The IPv6 ip address can be specified with square brackets like [fe80::3]. There can also be a zone id specified like [fe80::3%15]. A URL can specify its hostname with IPv6 literal,
原文中的代码
#include <stdio.h>
#include <curl/curl.h>
int main(int argc, char*argv[])
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
/* example.com is redirected, so we tell libcurl to follow redirection */ …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @thomas_v · 版权归作者与 curl 所有