Medium, CVSS 6.5PackagistPublished
Zend-Session session validation vulnerability
GHSA-96c6-m98x-hxjx
- Affected
- Packagist zendframework/zend-session >= 2.0.0, < 2.2.9; >= 2.3.0, < 2.3.4
- Fixed in
- 2.3.42.2.9· Vendor fix available
- Issue
- Zend\Session session validators do not work as expected if set prior to the start of a session. For instance, the following test case fails (where $this-manager is an instance of Zend\Session\SessionManager): The implication is that subsequent calls to Zend\Session\SessionManager#start() (in later requests, assuming a session was created) will not have any validator metadata attached, which causes any validator metadata to be re-built from scratch, thus marking the session as valid. An attacker is thus able to simply ignore session validators such as RemoteAddr or HttpUserAgent, since the "signature" that these validators check against is not being stored in the session.
Recommended action: Upgrade to 2.3.4 or 2.2.9 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.