POJIA破甲
地图 / libcurl: Host-Only Cookies Leak to Alternate IPv4 Forms

libcurl: Host-Only Cookies Leak to Alternate IPv4 Forms

信息泄露 / Unlabeled / #3324901

厂商
curl
严重程度
未评级
赏金
—
弱点
Unlabeled
研究员
@g3nj1z
披露日期
2025-09-04
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(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 所有

同类报告

Github access token exposureShopify · 2021-07-26 · $50,000Disclosing PolicyPageAssetGroup in Private Programs via /graphql `gid://hackerone/PolicyPageAssetGroupsIndex::PolicyPageAssetGroup/{id}`HackerOne · 2025-01-21 · $25,000Informations disclosure - Access to some checkout informationsShopify · 2021-03-13Disclosure handle private program with external linkHackerOne · 2021-08-24 · $2,500Cloudflare WAF Bypass - Origin IP ExposureHemi VDP · 2025-03-27[Zomato Order] Insecure deeplink leads to sensitive information disclosureEternal · 2021-09-23 · $750