Files
clinch/config
Dan Milne 57d7d1f691 Anchor host-authorization regex to prevent look-alike domain bypass
The DNS-rebinding allowlist used /.*#{registrable_domain}/, which is unanchored:
for example.com it also matched evil-example.com, notexample.com,
example.computer, and example.com.attacker.com. Any of those hosts would pass
Rails' HostAuthorization middleware.

Anchor the pattern as /\A(.+\.)?DOMAIN\z/i so it matches only the registrable
domain and its subdomains (now also case-insensitively). Verified against a
real production boot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 19:47:35 +10:00
..
2025-10-23 16:19:56 +11:00
2026-01-01 13:29:44 +11:00
2025-10-23 16:19:56 +11:00
2025-10-23 16:19:56 +11:00
2025-10-23 16:19:56 +11:00
2025-10-23 16:19:56 +11:00
2025-10-23 16:19:56 +11:00
2025-10-23 16:19:56 +11:00