GHSA-25gq-jvx2-vg9x Silverstripe X-Forwarded-Host request hostname injection
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- PHPNginx
Description
A potential hostname injection vulnerability has been found which could allow attackers to alter url resolution.
If a request contains the X-Forwarded-Host HTTP header a website would then use its value in place of the actual HTTP hostname. In cases where caching is enabled, this could allow an attacker to potentially embed a remote url as the base_url for any site. This would then cause other visitors to the site to be redirected unknowingly.
This header is necessary for servers running behind a reverse proxy (such as nginx). Such servers are likely not vulnerable to this risk.
A fix has been merged into the default installer, although existing projects which do not run behind a reverse proxy should update their htaccess as below:
<IfModule mod_headers.c>
# Remove X-Forwarded-Host header sent as a part of any request from the web
RequestHeader unset X-Forwarded-Host
</IfModule>
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| silverstripe/framework(Packagist) | = 3.1.0; = 3.1.1; = 3.1.2; = 3.1.2-rc1 +24 more | 3.1.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| silverstripe/framework(Packagist) | >= 3.1.0, < 3.1.13 | 3.1.13 |
| silverstripe/framework(Packagist) | = 3.1.0 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.10 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.10-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.10-rc2 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.11 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.11-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.12 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.13-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.2 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.2-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.3 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.3-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.3-rc2 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.4 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.4-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.5 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.5-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.6 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.6-rc1 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.6-rc2 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.6-rc3 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.7 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.7-rc1 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| silverstripe/framework(Packagist) | = 3.1.8 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.9 | No fix listed |
| silverstripe/framework(Packagist) | = 3.1.9-rc1 | No fix listed |
References
- github.com patch
- github.com
- github.com product
- www.silverstripe.org
- github.com