TOCTOU Race Condition in HTTP/2 Connection Reuse Leads to Certificate Validation Bypass
业务逻辑 / TOCTOU 竞态条件 / #3335085
该报告还没有中文解读。
原文摘录
摘自原文(9197 字符中的一小部分)
I've discovered a Time-of-Check to Time-of-Use (TOCTOU) vulnerability in how `libcurl` handles persistent HTTP/2 connections. During the initial handshake, `libcurl` correctly validates the server's certificate against the user-provided CA bundle. However, it then assumes this trust is permanent …
原文中的代码
# Proof of Concept for Curl HTTP/2 TOCTOU Vulnerability
import threading, ssl, http.server, time, os, glob, sys, subprocess
def compile_curl():
# Stage 1: Compile Curl 8.16.0 from source to ensure we test the latest version.
print("--- STAGE 1: COMPILING CURL 8.16.0 ---")
if …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @0xrey · 版权归作者与 curl 所有