Read the docs
TI-2024-38745 Aliases GHSA-87pf-7x99-5xc4

Silverstripe Hostname, IP and Protocol Spoofing through HTTP Headers

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

In it's default configuration, SilverStripe trusts all originating IPs to include HTTP headers for Hostname, IP and Protocol. This enables reverse proxies to forward requests while still retaining the original request information. Trusted IPs can be limited via the SS_TRUSTED_PROXY_IPS constant. Even with this restriction in place, SilverStripe trusts a variety of HTTP headers due to different proxy notations (e.g. X-Forwarded-For vs. Client-IP). Unless a proxy explicitly unsets invalid HTTP headers from connecting clients, this can lead to spoofing requests being passed through trusted proxies. The impact of spoofed headers can include Director::forceSSL() not being enforced, SS_HTTPRequest->getIP() returning a wrong IP (disabling any IP restrictions), and spoofed hostnames circumventing any hostname-specific restrictions enforced in SilverStripe Controllers. Regardless on running a reverse proxy in your hosting infrastructure, please follow the instructions on Secure Coding: Request hostname forgery in order to opt-in to these protections. If your website is not behind a reverse proxy, you might already be protected if using Apache with mod_env enabled, and you have the following line in your .htaccess file: SetEnv BlockUntrustedIPs true.

Why it matters now

Fix Fixed silverstripe/framework (Packagist): 3.1.17, 3.2.2, 3.3.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—silverstripe/framework (Packagist)before 3.1.173.1.17Patch availableGHSA-87pf-7x99-5xc4
—silverstripe/framework (Packagist)3.2.0 to before 3.2.23.2.2Patch availableGHSA-87pf-7x99-5xc4
—silverstripe/framework (Packagist)3.3.0-beta1 to before 3.3.03.3.0Patch availableGHSA-87pf-7x99-5xc4
  • silverstripe/framework (Packagist) Vendor— Affected before 3.1.17 Fixed in 3.1.17 Patch available GHSA-87pf-7x99-5xc4
  • silverstripe/framework (Packagist) Vendor— Affected 3.2.0 to before 3.2.2 Fixed in 3.2.2 Patch available GHSA-87pf-7x99-5xc4
  • silverstripe/framework (Packagist) Vendor— Affected 3.3.0-beta1 to before 3.3.0 Fixed in 3.3.0 Patch available GHSA-87pf-7x99-5xc4

Remediation

  • Fix · GHSA-87pf-7x99-5xc4 silverstripe/framework (Packagist) Fixed in 3.1.17 Advisory →
  • Fix · GHSA-87pf-7x99-5xc4 silverstripe/framework (Packagist) Fixed in 3.2.2 Advisory →
  • Fix · GHSA-87pf-7x99-5xc4 silverstripe/framework (Packagist) Fixed in 3.3.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-87pf-7x99-5xc4

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences