20: HTAB before `Secure` attribute silently drops the Secure cookie flag
该报告还没有中文解读。
原文摘录
摘自原文(2380 字符中的一小部分)
A `Set-Cookie` header using HTAB (horizontal tab) instead of SPACE before the `Secure` attribute — e.g. `Set-Cookie: sid=SECRET;\tSecure` — causes curl to store the cookie without its Secure flag. The cookie is then sent over plaintext HTTP on subsequent requests to the same host.
原文中的代码
do {
if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) {
// parse attribute
}
} while(!curlx_str_single(&ptr, ';'));默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有