Commit graph nitter/tests/test_ssrf_1411.nim
Author SHA1 Message Date
Zed
44b2f096f6 Fix SSRF in /video proxy and API JSON injection
Validate the target host on the /video media route with
isTwitterUrl() (mirroring /pic) and reject non-http(s) schemes,
and stop the media proxy following redirects off the validated
host. JSON-escape user-controlled GraphQL cursors and build id
variables with packedjson so untrusted input can't break out of
the query. Warn on startup when the insecure default hmacKey is
in use.

Fixes #1411
2026-06-18 15:01:48 +02:00