Cookie attribute TAB injection regression in Set-Cookie parsing
该报告还没有中文解读。
原文摘录
摘自原文(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 所有