POJIA破甲
地图 / curl tool: --hsts is ignored for a schemeless URL starting with a slash under --proto-default http

curl tool: --hsts is ignored for a schemeless URL starting with a slash under --proto-default http

密码学缺陷 / 敏感信息明文传输 / #4063328

厂商
curl
严重程度
低危
赏金
—
弱点
敏感信息明文传输
研究员
@samueloph
披露日期
2026-10-08
资产
https://github.com/curl/curl
CVE
CVE-2022-30115CVE-2022-42916CVE-2022-43551CVE-2023-23914CVE-2023-23915CVE-2026-12064

该报告还没有中文解读。

原文摘录

摘自原文(5090 字符中的一小部分)
When the curl tool gets `--proto-default http` and a URL without a scheme that starts with a slash, such as `/example.com/path`, it skips all the options set in `http_setopts()`: `--hsts`, `--alt-svc`, the cookie options, `-L` and the rest. libcurl still performs the transfer, over plain HTTP. …
原文中的代码
cd "$(mktemp -d)"
printf 'hsts.example "20991231 23:59:59"\n' > hsts.txt
# plain-text HTTP server, needs port 8080 to be free
python3 -m http.server --bind 127.0.0.1 8080 > server.log 2>&1 &
SERVER=$!
sleep 1

# 1. Regular URL: upgraded to HTTPS by HSTS
curl -s -o /dev/null -w '%{url_effective} …

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

时间线

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

同类报告

Reflected XSS and sensitive data exposure, including payment details, on lioncityrentals.com.sgUber · 2020-04-30 · $4,000Password Reset Link Leaked In Refer Header In Request To Third Party SitesNord Security · —Cleartext Transmission of Sensitive Information Leads to administrator accessHelium · 2020-05-30fetlife.com/signup_step_profile expose access_token of mapbox.comFetLife · 2023-11-01Cleartext Transmission of password via EmailSheer · 2024-04-22 · $200Sensitive Info Leak - An Attacker Can Retrieve All the Users Mobile Numbers at https://website-api.production.curve.app/api/waitlist/usCurve · 2020-10-23