netrc credentials leaked to a cross-host redirect target on the Basic auth path (not covered by redirect credential protections)
该报告还没有中文解读。
原文摘录
摘自原文(12084 字符中的一小部分)
curl's redirect credential-leak protection (the `CURLOPT_UNRESTRICTED_AUTH` off-by-default guarantee, enforced by `Curl_auth_allowed_to_origin()`) covers three credential sources: a custom `Authorization` header, `CURLOPT_USERNAME`/`CURLOPT_PASSWORD`, and cookies. It does **not** cover credentials …
原文中的代码
// lib/url.c:2068+ url_set_data_origin_and_creds() // parses the redirect URL, updates data->state.origin to the redirect target. // data->state.initial_origin is only cleared in Curl_pretransfer (not on redirect). // lib/url.c:1371+ url_set_data_origin_and_creds() -> …
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @noraqiu · 版权归作者与 curl 所有