Zend-HTTP URL Rewrite vulnerability
Published 7 Jun 2024 · Updated 4 Dec 2024
Affected package
- Affected
- >=1.0.0 <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-cg8w-5jrc-675g 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-http, and gives you the command that fixes it.
References
- Linkgithub.com/zendframework/zend-http/commit/44197164a270259116162a442f639085ea24094a
- Linkgithub.com/zendframework/zend-http/commit/5234f4a9e8137b731ab95d6a17879d4eb8fb9e39
- Linkframework.zend.com/security/advisory/ZF2018-01
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-http/ZF2018-01.yaml
- Packagegithub.com/zendframework/zend-http
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.