{"answers":{"affected":"4 open source packages ship an affected version, including zendframework/zend-session.","exploited":"There is no known exploitation of GHSA-96c6-m98x-hxjx in the wild and no public exploit code.","fix":"Upgrade zendframework/zend-session to a fixed version for your release line: 2.2.9 or 2.3.4.","what":"GHSA-96c6-m98x-hxjx is an authentication bypass vulnerability in zendframework/zend-session, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-96c6-m98x-hxjx and fix it if it is affected.\n\nWhat it is: GHSA-96c6-m98x-hxjx is an authentication bypass vulnerability in zendframework/zend-session, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-96c6-m98x-hxjx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zendframework/zend-session (Packagist): affected from 2.0.0; fixed in 2.2.9\n- zendframework/zend-session (Packagist): affected from 2.0.0; fixed in 2.2.9\n- zendframework/zend-session (Packagist): affected from 2.3.0; fixed in 2.3.4\n- zendframework/zend-session (Packagist): affected from 2.3.0; fixed in 2.3.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-96c6-m98x-hxjx/ (Markdown: https://insights.sbomify.com/GHSA-96c6-m98x-hxjx/index.md)","id":"GHSA-96c6-m98x-hxjx","markdown":"https://insights.sbomify.com/GHSA-96c6-m98x-hxjx/index.md","name":"GHSA-96c6-m98x-hxjx","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP session library","requires_auth":"none","summary":"Attackers can bypass session validation checks like IP or User-Agent, potentially hijacking sessions or evading detection in applications using Zend-Session.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`Zend\\Session` session validators do not work as expected if set prior to the start of a session.\n\nFor instance, the following test case fails (where $this-\u003emanager is an instance of `Zend\\Session\\SessionManager`):\n```\n$this\n    -\u003emanager\n    -\u003egetValidatorChain()\n    -\u003eattach('session.validate', array(new RemoteAddr(), 'isValid'));\n\n$this-\u003emanager-\u003estart();\n\n$this-\u003eassertSame(\n    array(\n        'Zend\\Session\\Validator\\RemoteAddr' =3D\u003e '',\n    ),\n    $_SESSION['__ZF']['_VALID']\n);\n```\nThe 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.\n\nAn 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Zend-Session session validation vulnerability","id":"GHSA-96c6-m98x-hxjx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["2.2.9"],"introduced":["2.0.0"],"last_affected":[],"package":"zendframework/zend-session","purl":null,"source":"GHSA-96c6-m98x-hxjx"},{"ecosystem":"Packagist","fixed":["2.2.9"],"introduced":["2.0.0"],"last_affected":[],"package":"zendframework/zend-session","purl":"pkg:composer/zendframework/zend-session","source":"GHSA-96c6-m98x-hxjx"},{"ecosystem":"Packagist","fixed":["2.3.4"],"introduced":["2.3.0"],"last_affected":[],"package":"zendframework/zend-session","purl":null,"source":"GHSA-96c6-m98x-hxjx"},{"ecosystem":"Packagist","fixed":["2.3.4"],"introduced":["2.3.0"],"last_affected":[],"package":"zendframework/zend-session","purl":"pkg:composer/zendframework/zend-session","source":"GHSA-96c6-m98x-hxjx"}],"products":null,"published":"2024-06-07","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass session validation checks like IP or User-Agent, potentially hijacking sessions or evading detection in applications using Zend-Session.","url":"https://insights.sbomify.com/GHSA-96c6-m98x-hxjx/"}