libcurl: Host-Only Cookies Leak to Alternate IPv4 Forms
该报告还没有中文解读。
原文摘录
摘自原文(10431 字符中的一小部分)
libcurl canonicalizes numeric IPv4 hostnames during URL parsing and redirect handling (example: 127.000.000.001 to 127.0.0.1). When a host-only cookie (no Domain= attribute) is set, it is stored in the cookie jar with the host string (127.0.0.1).
原文中的代码
if(*c == '0') {
if(c[1] == 'x') {
rc = curlx_str_hex(&c, &l, UINT_MAX);
}
else
rc = curlx_str_octal(&c, &l, UINT_MAX);
}
else
rc = curlx_str_number(&c, &l, UINT_MAX);
...
result = curlx_dyn_addf(host, "%u.%u.%u.%u",
(parts[0]), (parts[1]), …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @g3nj1z · 版权归作者与 curl 所有