Cyber Risks · Trail of Bits Blog

cURL audit: How a joke led to significant findings

Summary: Trail of Bits audited cURL in fall 2022 and, after a team member jokingly asked whether anyone had tried "curl AAAAAAAAAA…", fuzzed the tool's command-line interface with AFL++ over a month on a 32-core machine, finding use-after-free bugs, double-free bugs, and memory leaks. The bugs sit in libcurl, the development library, and were fixed across cURL 7.86.0 and 7.87.0.

What's compelling: The flaws live in libcurl, so they can reach the many applications that embed the library, not just the command-line tool; the researchers note that if an affected tool is a SUID binary, exploitation can result in privilege escalation.

Read the original at Trail of Bits Blog ↗