URL API: triple-slash parses path segment as hostname
其他弱点 / Use of Incorrectly-Resolved Name or Reference / #3923212
该报告还没有中文解读。
原文摘录
摘自原文(1390 字符中的一小部分)
libcurl's URL API misparses http:///host/path. Per RFC 3986, the authority between // and / is empty, so /host/path is the path. But parseurl() in lib/urlapi.c treats the first segment as the hostname. On line ~1087, the slash counter i reaches 3, which is within the valid 1-3 range, and hostp is …
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @thinhlx · 版权归作者与 curl 所有