llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · silverstripe/framework

GHSA-87PF-7X99-5XC4

Silverstripe Hostname, IP and Protocol Spoofing through HTTP Headers

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones3.1.17 · 3.2.2 · 3.3.0
Exposición910 dDesde la divulgación, 23 may 2024, 2:27 p. m.
Detección907 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
23 may 24
28 nov 24
17 nov 26
19 nov 26
23 may 24
6 ene 25
21 ago 25
6 abr 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-87PF-7X99-5XC4 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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.

Versiones

Rangos afectados

Afectada Corregida
silverstripe/framework< 3.1.17
silverstripe/framework≥ 3.2.0 < 3.2.2
silverstripe/framework≥ 3.3.0-beta1 < 3.3.0
3.1.17
3.2.0
3.2.2
3.3.0-beta1
3.3.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistsilverstripe/framework
Corregida 3.1.17, 3.2.2, 3.3.0 — —
Versiones corregidas3.1.173.2.23.3.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/silverstripe/silverstripe-framework/commit/37059eb6b3546f304e9c031abca0f096ddb175c6
Otrahttps://github.com/silverstripe/silverstripe-framework/commit/893e49703de4aa1855b5364919cbb0826f754fbf
Otrahttps://github.com/silverstripe/silverstripe-framework/commit/faa94d51d570788dcebc2f2ef6e9de4d179ce1e4
Otrahttps://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-003-1.yaml
Otrahttps://github.com/silverstripe/silverstripe-framework
Otrahttps://www.silverstripe.org/download/security-releases/ss-2016-003

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.