Commit Graph

14 Commits

Author SHA1 Message Date
KodeStar 881533baa5 Harden against host header injection and open redirect
Heimdall trusted the incoming X-Forwarded-Host header for URL generation, so
a spoofed value poisoned the page base href, asset() URLs and redirect
targets - loading assets from and redirecting to an attacker-controlled host
(CVE-2025-50578).

- TrustProxies no longer trusts X-Forwarded-Host; a forged value can no longer
  influence getHost(), url(), asset() or redirects. X-Forwarded-For/Port/Proto
  handling is unchanged.
- Trusted proxies are now configurable via the TRUSTED_PROXIES env var
  (comma-separated CIDRs/IPs, "*" to trust all), defaulting to the previous
  private ranges.
- Added an opt-in TRUSTED_HOSTS allow-list: when set, only the listed hosts are
  served and any other Host header is rejected. Unset keeps the historic
  behaviour of serving arbitrary hosts, so existing installs are unaffected.

Resolves #1451
2026-07-08 14:42:12 +01:00
Chris Hunt 69bc8cb34e Fixes to reduce the SSRF attack vector. 2025-07-13 19:06:33 +01:00
Shift 1fb6f75555 Set new ENV variables 2025-07-10 18:54:01 +00:00
Tobias Kolzer 55d3766b39 added AUTH_ROLES_DELIMITER to example env file 2025-05-05 11:49:41 +02:00
Tobias Kolzer f7de56b7a7 added missing variable to example env 2025-05-05 11:49:18 +02:00
Tobias Kolzer c56ffe1d1e fixed some rebase conflicts 2025-05-05 11:49:18 +02:00
KodeStar 36d1d55934 Revert "Replace Mix with Vite" 2024-02-17 21:02:45 +00:00
Shift f3a4ac3619 Rename ENV variables 2024-02-17 19:03:25 +00:00
Attila Kerekes bb07ba5964 feat: Add db connection example config 2022-11-24 14:28:16 +00:00
Kode 4d7a86fbf7 Update .env.example 2022-03-11 22:53:25 +00:00
Kode 348759b9ad update logging 2022-03-11 19:38:08 +00:00
KodeStar 1a14079b39 add APP_KEY 2019-01-04 14:00:15 +00:00
KodeStar 02df7844a4 Update .env.example 2019-01-04 10:34:12 +00:00
Kode 3e1a7119d9 First commit 2018-01-26 14:35:01 +00:00