POJIA破甲
地图 / SSH host-key policy is missing from the connection-reuse tuple: strict pins and knownhosts are silently skipped on reused SFTP/SCP connections

SSH host-key policy is missing from the connection-reuse tuple: strict pins and knownhosts are silently skipped on reused SFTP/SCP connections

身份认证 / Authentication Bypass by Primary Weakness / #4126768

厂商
curl
严重程度
低危
赏金
—
弱点
Authentication Bypass by Primary Weakness
研究员
@cyrax21_
披露日期
2026-10-19
资产
https://github.com/curl/curl
CVE
CVE-2022-27782

该报告还没有中文解读。

原文摘录

摘自原文(12107 字符中的一小部分)
(The core effect is a silent host-authentication bypass: a transfer whose configured SSH host-key policy would reject the server is served anyway, with exit code 0 and no warning, because it reuses a pooled connection established under a weaker or absent policy. curl may assess this lower because …
原文中的代码
static bool ssh_config_matches(struct connectdata *one,
                               struct connectdata *two)
{
  struct ssh_conn *sshc1, *sshc2;

  sshc1 = Curl_conn_meta_get(one, CURL_META_SSH_CONN);
  sshc2 = Curl_conn_meta_get(two, CURL_META_SSH_CONN);
  return sshc1 && sshc2 && …

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

时间线

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

同类报告

Negotiate connection reuse with wrong credentials when using CURLAUTH_ANYcurl · 2026-04-29SSH/SFTP connection reuse can bypass SSH key identity after ssh_config_matches removalcurl · 2026-06-09lib/http2.c: SSL connections accept non-HTTP push schemes (incomplete fix for 2e8c922a)curl · 2026-04-16HackerOne Vulnerability Report: libcurl SSL/TLS Identity Leakage via Insecure Connection Reusecurl · 2026-03-31CVE-2026-5545: wrong reuse of HTTP Negotiate connectioncurl · 2026-04-29Incorrect Parsing of IPv6 Zone ID in curlcurl · 2025-09-01