22: FTP wildcard matching decodes server-provided filenames, enabling directory traversal
该报告还没有中文解读。
原文摘录
摘自原文(5180 字符中的一小部分)
When `CURLOPT_WILDCARDMATCH` is enabled, libcurl concatenates the server-provided LIST filename directly onto the wildcard path and then URL-decodes the combined string. A filename containing percent-encoded path separators (e.g. `%2e%2e%2fsecret.txt`) is decoded into `../secret.txt`, causing …
原文中的代码
char *tmp_path = curl_maprintf("%s%s", wildcard->path, finfo->filename);默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有