Statamic: Server-Side Request Forgery via Glide (DNS rebinding)
Description
Statamic is a Laravel and Git powered content management system (CMS). Prior to 5.73.24 and 6.20.1, the Glide image proxy's URL validation in src/Imaging/RemoteUrlValidator.php and src/Imaging/GuzzleAdapter.php could be bypassed using DNS rebinding. The remote hostname was validated as publicly routable, but resolved again when the image was actually fetched, so an attacker controlling the hostname's DNS could rebind it to an internal address after validation and cause the server to make HTTP requests to internal addresses, including loopback, private network, and cloud metadata endpoints. This affects sites that pass user-supplied URLs to Glide. This issue is fixed in versions 5.73.24 and 6.20.1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
statamic/cmsPackagist | < 5.73.24 | 5.73.24 |
statamic/cmsPackagist | >= 6.0.0, < 6.20.1 | 6.20.1 |
Affected products
1Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-v5c4-wcpj-x73mghsaADVISORY
- github.com/statamic/cms/commit/d8f4575c425e2932f22ac030568e990be0dae2damitrex_refsource_MISC
- github.com/statamic/cms/pull/14761mitrex_refsource_MISC
- github.com/statamic/cms/releases/tag/v5.73.24mitrex_refsource_MISC
- github.com/statamic/cms/releases/tag/v6.20.1mitrex_refsource_MISC
- github.com/statamic/cms/security/advisories/GHSA-v5c4-wcpj-x73mghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.