← 返回地图破甲

curl External-Controlled Filename in `--url @file` Leads to Arbitrary File Overwrite

路径遍历 / External Control of File Name or Path / #3766392

厂商
curl
严重程度
低危
赏金
—
弱点
External Control of File Name or Path
研究员
@alphalaab
披露日期
2026-06-07
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(12307 字符中的一小部分)
Vulnerability Report: curl External-Controlled Filename in `--url @file` Leads to Arbitrary File Overwrite
原文中的代码
if(nextarg[0] == '@') {
  /* read URLs from a file, treat all as -O */
  ...
  while(my_get_line(f, &line, &error)) {
    const char *ptr = curlx_dyn_ptr(&line);
    err = add_url(config, ptr, TRUE);
    ...
  }
}

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。

时间线

阅读 HackerOne 原文 ↗作者 @alphalaab · 版权归作者与 curl 所有

同类报告

Insufficient checks in the file path parameter allow writing to unauthorized directoriesSingleStore · 2026-06-24Arbitrary Configuration File Inclusion: via External Control of File Name or Pathcurl · 2025-11-10Arbitrary File Read via Unsanitized curl Usage Results in Sensitive File Exposurecurl · 2025-06-27CVE-2026-111951: curl -OJ truncate without filenamecurl · 2026-10-26