POJIA破甲
地图 / `Curl_socketpair()` fallback vulnerable to man-in-the-middle attack

`Curl_socketpair()` fallback vulnerable to man-in-the-middle attack

密码学缺陷 / 中间人攻击 / #3148937

厂商
curl
严重程度
未评级
赏金
—
弱点
中间人攻击
研究员
@jmanojlovich
披露日期
2025-05-20
资产
https://github.com/curl/curl
CVE
CVE-2024-3219

该报告还没有中文解读。

原文摘录

摘自原文(7149 字符中的一小部分)
In `Curl_socketpair()` in `curl/lib/socketpair.c` if the operating system lacks a native `socketpair()` function, libcurl will create its own pair of sockets. To do this, libcurl first creates a listening socket, then it creates a client socket, which it then connects to the listening socket. …
原文中的代码
  listener = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
  if(listener == CURL_SOCKET_BAD)
    return -1;

  memset(&a, 0, sizeof(a));
  a.inaddr.sin_family = AF_INET;
  a.inaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  a.inaddr.sin_port = 0;

  socks[0] = socks[1] = CURL_SOCKET_BAD;

#if …

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

时间线

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

同类报告

Build fetches jars over HTTPPortSwigger Web Security · 2019-06-10 · $1,000Man-in-the-middle through broken SSL certificate verificationNintendo · 2025-08-08Web protection component in Anti-Virus products family ignores HSTS security policyKaspersky · 2019-09-05burp does not validate the common name of the presented collaborator server certificatePortSwigger Web Security · 2018-06-13 · $1,500curl Missing Sec-WebSocket-Accept Verification Enables MITM WebSocket Session Hijackingcurl · 2026-08-05registry.nodejs.org Subdomain TakeoverNode.js · 2018-05-04