File URL UNC Path Access (Windows SSRF)
该报告还没有中文解读。
原文摘录
摘自原文(13323 字符中的一小部分)
Vulnerability Details - **CVSSv3:** 7.5 (High) - Windows only - **File:** `lib/urlapi.c:974-1030` - **Issue:** Windows file:// URLs accept UNC paths to remote servers - **Impact:** SSRF, unauthorized network file access, credential theft
原文中的代码
// lib/urlapi.c:974-1030
if(ptr[0] != '/' && !STARTS_WITH_URL_DRIVE_PREFIX(ptr)) {
/* the URL includes a hostname, it must match "localhost" or
"127.0.0.1" to be valid */
if(checkprefix("localhost/", ptr) ||
checkprefix("127.0.0.1/", ptr)) {
ptr += 9; /* now points to the slash …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @im4x · 版权归作者与 curl 所有