libcurl cache updates follow symlinks and truncate their targets
业务逻辑 / TOCTOU 竞态条件 / #3938220
该报告还没有中文解读。
原文摘录
摘自原文(999 字符中的一小部分)
Summary: When curl updates an HSTS, Alt-Svc, or cookie cache, it opens the supplied path with "w" before validating it, so a symlink path can truncate the file it targets. Root cause: Curl_fopen() calls curlx_fopen(filename, "w") before checking the path or creating the safe temporary file, and …
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @mr4bugs · 版权归作者与 curl 所有