POJIA破甲
地图 / Cross‑origin cookies leak and injection risk when using a custom Host header

Cross‑origin cookies leak and injection risk when using a custom Host header

身份认证 / 凭据保护不足 / #3516878

厂商
curl
严重程度
未评级
赏金
—
弱点
凭据保护不足
研究员
@b4c90000040c1287364ccde6de680
披露日期
2026-01-20
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(4693 字符中的一小部分)
Summary When a custom hostname is specified, it is used for cookie matching if the cookie engine is also enabled for this transfer. This matching persists in cross-origin redirects despite that the originally supplied hostname is removed.
原文中的代码
ptr = Curl_checkheaders(data, STRCONST("Host"));
if(ptr && (!data->state.this_is_a_follow || curl_strequal(data->state.first_host, conn->host.name))) {
    /* If we have a given custom Host: header, we extract the hostname in
       order to possibly use it for cookie reasons later on. We only …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @b4c90000040c1287364ccde6de680 · 版权归作者与 curl 所有

同类报告

Account takeover via leaked session cookieHackerOne · 2019-12-03 · $20,000h1-202 leaderboard photo discloses local wifi passwordHackerOne · 2018-03-25HackerOne Code sends live password-reset tokens to Segment in automatic page eventsHackerOne · 2026-09-24 · $200Authentication Token Theft via Open Redirect in Callback URL Parameterlemlist · 2025-11-14Weak/Auto Fill PasswordMTN Group · 2022-09-03HackerOne Code: a live password reset token reaches Datadog RUM, and the same session records the account it unlocksHackerOne · 2026-10-08 · $200