POJIA破甲
地图 / Cookie attribute TAB injection regression in Set-Cookie parsing

Cookie attribute TAB injection regression in Set-Cookie parsing

其他弱点 / 输入校验不当 / #3641893

厂商
curl
严重程度
低危
赏金
—
弱点
输入校验不当
研究员
@calaba_zas
披露日期
2026-04-03
资产
https://github.com/curl/curl
CVE
CVE-2022-35252

该报告还没有中文解读。

原文摘录

摘自原文(10680 字符中的一小部分)
| | | |---|---| | **Component** | `lib/cookie.c` — `parse_cookie_header()` | | **Type** | Security regression (incomplete input validation) | | **CWE** | CWE-20 Improper Input Validation | | **Severity** | LOW (CVSS 3.1 estimated ~3.7, comparable to CVE-2022-35252) | | **Affected** | curl 8.18.0 …
原文中的代码
// Applies to ALL pairs: name/value, path=, domain=, etc.
vlen = strcspn(ptr, ";\r\n");
valuep = ptr;
...
/* Reject cookies with a TAB inside the value */
if(memchr(valuep, '\t', vlen)) {
  infof(data, "cookie contains TAB, dropping");
  return CERR_TAB;
}
...
if(!co->name) {
  /* first pair …

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

时间线

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

同类报告

Steal ALL collateral during liquidation by exploiting lack of validation in `flip.kick`BlockDev Sp. Z o.o · 2019-10-01Bypass of GitLab CI runner slash fix in YAML validationGitLab · 2019-04-10Bypass "No Links" Restriction in Biography via Protocol-Relative URL (//)Mozilla · 2025-07-29HTML Injection on tiktoktutorials via firstName parameterTikTok · 2021-10-30Bypass of Restricted Keyword "Mozilla" in Display Name Field via Unicode Homoglyphs on addons.allizom.orgMozilla · 2026-04-27 · $500moderate: Apache HTTP Server: mod_rewrite proxy handler substitution (CVE-2024-39573) CWE-20 Improper Input ValidationInternet Bug Bounty · 2024-08-12 · $2,600