Files
webhooker/internal
clawbot fd6397154a
All checks were successful
check / check (push) Successful in 7s
Cap the X-Forwarded-For hop walk at 64 entries (closes #124)
The walk now keeps only the rightmost 64 hops, so an attacker-supplied chain cannot burn unbounded CPU in the rate-limit key function. Running off the end of the truncated slice falls back to the peer address, the same fail-closed direction the rest of the function takes. Also corrects the unparseable-RemoteAddr comment, which overclaimed about Unix-socket peers.
2026-08-12 11:53:48 +02:00
..