POJIA破甲
地图 / Malicious server forces .curlrc creation via curl -OJ leading to local file exfiltration

Malicious server forces .curlrc creation via curl -OJ leading to local file exfiltration

路径遍历 / Unlabeled / #3427194

厂商
curl
严重程度
未评级
赏金
—
弱点
Unlabeled
研究员
@djogho
披露日期
2025-11-15
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(1876 字符中的一小部分)
Summary: When a user runs `curl -OJ <url>`, a malicious server can force the response to be saved as `.curlrc` in the working directory. If the user executes the download from their home directory (a common workflow), the attacker overwrites `~/.curlrc`. Subsequent `curl` invocations automatically …
原文中的代码
djamelghorab@DESKTOP-VUFM4GM:~$ curl -V
curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
Release-Date: 2023-12-06, security patched: …

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

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @djogho · 版权归作者与 curl 所有

同类报告

Directory Traversal in uftpd 2.6-2.10██████ · —Local files reading from the web using `brave://`Brave Software · 2018-09-25Directory Traversal + HTTP Paramater Pollution leaking SQL/LDAP credentialsSoleo · —Local files reading using `link[rel="import"]`Brave Software · 2018-09-29Path traversal leading to limited CSRF on GET requests on two endpointsHackerOne · 2019-04-05Arbitrary file read from Cloudflare Pages build environmentCloudflare Public Bug Bounty · 2024-02-23