Curl_compareheader() fails to match multi-value HTTP headers
业务逻辑 / Expected Behavior Violation / #3598444
该报告还没有中文解读。
原文摘录
摘自原文(4529 字符中的一小部分)
`Curl_compareheader()` in `lib/http.c` fails to scan the full value of HTTP headers for substring matches. Due to an incorrect loop condition, only the first byte position of the header value is checked. This causes curl to miss connection options like `close` when they appear as non-first tokens …
原文中的代码
for(len = curlx_strlen(&val); len >= curlx_strlen(&val); len--, p++) {默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @henriqueg · 版权归作者与 curl 所有