Skip to content

Add a fuzz harness for the SOCKS5 client handshake - #2242

Open
xroche wants to merge 1 commit into
masterfrom
fuzz-socks5
Open

xroche wants to merge 1 commit into
masterfrom
fuzz-socks5

Conversation

@xroche

@xroche xroche commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Adds fuzz-socks5, which runs the SOCKS5 client handshake against a hostile proxy reply through socks5_handshake_scripted(). Its input also carries the origin address and the proxy URL, so the port parser and the proxy credential decoder are fuzzed too.

fuzz-socks5 drives socks5_handshake_scripted() with a hostile proxy
reply. The input carries the origin address and the proxy URL on its
first two lines, so the port parser and the RFC 1929 credential decoder
run too. The harness aborts if the reader consumes past the script, or
if a handshake reported as successful did not end with a whole CONNECT
frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche enabled auto-merge (squash) November 14, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant