Cyber Risks · Trail of Bits Blog

How we applied advanced fuzzing techniques to cURL

Summary: Trail of Bits was hired by OSTIF at the end of 2022 to assess cURL and libcurl, including an effort to improve the project's fuzzing code in the curl-fuzzer repository that OSS-Fuzz has run since July 1, 2017. By setting libcurl options such as CURLOPT_HSTS during fuzzer initialization and adding new seed files, the team doubled line coverage of hsts.c and nearly quintupled it for altsvc.c, and also expanded fuzzing to WebSocket and additional libcurl options.

What's compelling: Before the fixes, hsts.c - the code parsing the Strict-Transport-Security header - sat at 4.46% line coverage after more than five years on OSS-Fuzz, meaning the parser handling untrusted response headers was largely untested by the project's continuous fuzzing.

Read the original at Trail of Bits Blog ↗

Topics
Supply Chain & AppSec
Related
Kitesurf is now open source Cyber Risks · Nov 13, 2026