mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
BUG-112: clientIPWithProxies now validates extracted X-Real-IP and X-Forwarded-For values with net.ParseIP. Non-IP strings are rejected, falling back to RemoteAddr. Prevents attackers from choosing arbitrary rate-limit bucket keys via header injection. BUG-118: Files with MIME types that could execute active content (HTML, SVG, XML, PDF) are now served with Content-Disposition: attachment instead of inline, preventing content hosting under the OwnCord origin.