curl overwrites local file with -J option if file non-readable, but file writable.
访问控制 / Improper Handling of Insufficient Permissions or Privileges / #926638
该报告还没有中文解读。
原文摘录
摘自原文(3099 字符中的一小部分)
When using -J -O options on curl command line tool and a server responding with a header that is using Content-Disposition to provide a filename, existing local file will be overwritten if the file is non-readable by the current user, but file is writable by the current user.
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @brumbrum · 版权归作者与 curl 所有