]> git.ipfire.org Git - thirdparty/rsync.git/commit
socket: reject over-long proxy response line
authorAndrew Tridgell <andrew@tridgell.net>
Wed, 13 May 2026 10:35:35 +0000 (20:35 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Wed, 20 May 2026 00:01:22 +0000 (10:01 +1000)
commita5fc5ebe7a8ef1aa72f6e344599f97fd4427ecba
tree8a55bffbba7fb1547b6a3a3eaa0fdc4d81c60401
parentc79cb81a4f07770723b73e85bf6088fe64adc9cd
socket: reject over-long proxy response line

fixes a one byte stack overflow when using RSYNC_PROXY with a
malicious proxy.

Reach: only when RSYNC_PROXY is set and a malicious or MITM'd
proxy returns the pathological response.  The byte written is
always '\0' and the attacker doesn't choose the offset, so impact
is corruption of one adjacent stack byte and possible later
misbehaviour or crash -- no information disclosure beyond the
existing rprintf of buffer contents.

Reported by Aisle Research via Michal Ruprich
socket.c
testsuite/proxy-response-line-too-long.test [new file with mode: 0755]