Windows filename sanitizer misses Unicode COM/LPT reserved device names
该报告还没有中文解读。
原文摘录
摘自原文(7851 字符中的一小部分)
I found a way for a server-selected Windows filename to bypass curl's reserved DOS device-name sanitizer. With `curl -O -J`, a `Content-Disposition` filename such as `COM¹`, `COM²`, `COM³`, `LPT¹`, `LPT²`, or `LPT³` is left unchanged, even though Windows treats all six as reserved device names.
原文中的代码
(curl_strnequal(p, "COM", 3) || curl_strnequal(p, "LPT", 3)) ?
(('1' <= p[3] && p[3] <= '9') ? 4 : 3) : 0;默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有