POJIA破甲
地图 / cookie: case-insensitive path comparison in replace_existing() allows cookie eviction across distinct paths

cookie: case-insensitive path comparison in replace_existing() allows cookie eviction across distinct paths

业务逻辑 / 业务逻辑错误 / #3735238

厂商
curl
严重程度
未评级
赏金
—
弱点
业务逻辑错误
研究员
@giant_anteater
披露日期
2026-05-18
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(7919 字符中的一小部分)
`replace_existing()` in `lib/cookie.c` compares cookie **paths** case-insensitively at two sites. On case-sensitive servers, `/Admin` and `/admin` are distinct resources and are supposed to produce distinct jar entries. Because libcurl conflates them, a `Set-Cookie` at one path silently evicts the …
原文中的代码
if(curl_strnequal(clist->path, co->path, cllen)) {
  ...
}

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

时间线

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

同类报告

Modify in-flight data to payment provider Smart2PayValve · 2021-08-10 · $7,500H1514 Ability to MiTM Shopify PoS Session to Takeover CommunicationsShopify · 2019-11-04Hackerone is not properly deleting user idHackerOne · 2021-06-11Double Payout via PayPalCoinbase · 2018-04-04 · $10,000Getting New Invitations without Leaving ProgramsHackerOne · 2020-10-15[fleet.city-mobil.ru] Driver balance increasingMail.ru · —