URL Rewrite vulnerability in multiple zendframework components
Impact
zend-diactoros (and, by extension, Expressive), zend-http (and, by extension, Zend Framework MVC projects), and zend-feed (specifically, its PubSubHubbub sub-component) each contain a potential URL rewrite exploit. In each case, marshaling a request URI includes logic that introspects HTTP request headers that are specific to a given server-side URL rewrite mechanism.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.8.4Ecosystem versions | 1.8.4 |
Version evidence: OSV · GHSA-f6p5-76fp-m248
View original version evidence (37 explicit versions)
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.10.3Ecosystem versions | 2.10.3 |
Version evidence: OSV · GHSA-f6p5-76fp-m248
View original version evidence (69 explicit versions)
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.8.1Ecosystem versions | 2.8.1 |
Version evidence: OSV · GHSA-f6p5-76fp-m248
View original version evidence (68 explicit versions)
Original source description
zend-diactoros (and, by extension, Expressive), zend-http (and, by extension, Zend Framework MVC projects), and zend-feed (specifically, its PubSubHubbub sub-component) each contain a potential URL rewrite exploit. In each case, marshaling a request URI includes logic that introspects HTTP request headers that are specific to a given server-side URL rewrite mechanism.
When these headers are present on systems not running the specific URL rewriting mechanism, the logic would still trigger, allowing a malicious client or proxy to emulate the headers to request arbitrary content.
References
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-diactoros/ZF2018-01.yaml
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-feed/ZF2018-01.yaml
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-http/ZF2018-01.yaml