How I Made A Heap Overflow In Curl
A heap buffer overflow in curl's SOCKS5 handling occurs when a hostname longer than 255 bytes is provided and the proxy is slow, causing curl to switch from remote to local resolution and then back, leading to an overflow when copying the hostname into a too-small buffer. An attacker controlling an HTTPS server accessed via a SOCKS5 proxy could redirect the client to a crafted long hostname, potentially overwriting heap memory.
Internet Bug Bounty (curl)