URL Rewrite vulnerability in multiple zendframework components
Published 28 Apr 2022 · Updated 28 Nov 2024
Affected packages
- Affected
- <1.8.4
- Fixed in
- 1.8.4
composer require zendframework/zend-diactoros:^1.8.4- Affected
- <2.10.3
- Fixed in
- 2.10.3
composer require zendframework/zend-feed:^2.10.3- Affected
- <2.8.1
- Fixed in
- 2.8.1
composer require zendframework/zend-http:^2.8.1Details
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.
Is GHSA-f6p5-76fp-m248 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected zendframework/zend-diactoros, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.