{"answers":{"affected":"2 open source packages ship an affected version, including apereo/phpcas. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-39369 in the wild and no public exploit code.","fix":"Upgrade apereo/phpcas to 1.6.0 or later.","what":"CVE-2022-39369 is a high-severity vulnerability in Fedoraproject Fedora, published on 1 Nov 2022."},"fix_prompt":"Check this codebase for CVE-2022-39369 and fix it if it is affected.\n\nWhat it is: CVE-2022-39369 is a high-severity vulnerability in Fedoraproject Fedora, published on 1 Nov 2022. \nExploitation: There is no known exploitation of CVE-2022-39369 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apereo/phpcas (Packagist): affected all versions; fixed in 1.6.0\n- apereo/phpcas (Packagist): affected all versions; fixed in 1.6.0\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/CVE-2022-39369/ (Markdown: https://insights.sbomify.com/CVE-2022-39369/index.md)","id":"CVE-2022-39369","markdown":"https://insights.sbomify.com/CVE-2022-39369/index.md","name":"CVE-2022-39369","record":{"aliases":["DEBIAN-CVE-2022-39369","DLA-3485-1","GHSA-8q72-6qq8-xv64","MGASA-2022-0432","UBUNTU-CVE-2022-39369","USN-6913-1","USN-6913-2","USN-6914-1"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"phpcas","vendor":"apereo"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-99","name":"Improper Control of Resource Identifiers"},{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"description":"phpCAS is an authentication library that allows PHP applications to easily authenticate users via a Central Authentication Service (CAS) server. The phpCAS library uses HTTP headers to determine the service URL used to validate tickets. This allows an attacker to control the host header and use a valid ticket granted for any authorized service in the same SSO realm (CAS server) to authenticate to the service protected by phpCAS. Depending on the settings of the CAS server service registry in worst case this may be any other service URL (if the allowed URLs are configured to \"^(https)://.*\") or may be strictly limited to known and authorized services in the same SSO federation if proper URL service validation is applied. This vulnerability may allow an attacker to gain access to a victim's account on a vulnerable CASified service without victim's knowledge, when the victim visits attacker's website while being logged in to the same CAS server. phpCAS 1.6.0 is a major version upgrade that starts enforcing service URL discovery validation, because there is unfortunately no 100% safe default config to use in PHP. Starting this version, it is required to pass in an additional service base URL argument when constructing the client class. For more information, please refer to the upgrading doc. This vulnerability only impacts the CAS client that the phpCAS library protects against. The problematic service URL discovery behavior in phpCAS \u003c 1.6.0 will only be disabled, and thus you are not impacted from it, if the phpCAS configuration has the following setup: 1. `phpCAS::setUrl()` is called (a reminder that you have to pass in the full URL of the current page, rather than your service base URL), and 2. `phpCAS::setCallbackURL()` is called, only when the proxy mode is enabled. 3. If your PHP's HTTP header input `X-Forwarded-Host`, `X-Forwarded-Server`, `Host`, `X-Forwarded-Proto`, `X-Forwarded-Protocol` is sanitized before reaching PHP (by a reverse proxy, for example), you will not be impacted by this vulnerability either. If your CAS server service registry is configured to only allow known and trusted service URLs the severity of the vulnerability is reduced substantially in its severity since an attacker must be in control of another authorized service. Otherwise, you should upgrade the library to get the safe service discovery behavior.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Service Hostname Discovery Exploitation in phpCAS","id":"CVE-2022-39369","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":null,"year":"2022"},"n_packages":2,"n_references":5,"next":{"headline":"Improper access to debug panel in GLPI","id":"CVE-2022-39370"},"packages":[{"ecosystem":"Packagist","fixed":["1.6.0"],"introduced":["0"],"last_affected":[],"package":"apereo/phpcas","purl":null,"source":"GHSA-8q72-6qq8-xv64"},{"ecosystem":"Packagist","fixed":["1.6.0"],"introduced":["0"],"last_affected":[],"package":"apereo/phpcas","purl":"pkg:composer/apereo/phpcas","source":"GHSA-8q72-6qq8-xv64"}],"prev":{"headline":"Californium Failing DTLS handshakes causes Data Loss due to throttling blocking processing of records","id":"CVE-2022-39368"},"products":["phpCAS"],"published":"2022-11-01","related":[{"cvss_score":8.1,"headline":"Auth bypass in n/a","id":"CVE-2017-1000071","kev_date_added":null,"published":"2017-07-13"},{"cvss_score":6.4,"headline":"Path traversal in n/a","id":"CVE-2010-3692","kev_date_added":null,"published":"2010-10-07"},{"cvss_score":5.8,"headline":"Weak cryptography in n/a","id":"CVE-2012-5583","kev_date_added":null,"published":"2014-06-06"},{"cvss_score":5.5,"headline":"Information disclosure in php-pear-CAS","id":"CVE-2012-1105","kev_date_added":null,"published":"2019-12-05"},{"cvss_score":5.3,"headline":"Security feature bypass in phpCAS","id":"CVE-2012-1104","kev_date_added":null,"published":"2019-12-05"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2010-3690","kev_date_added":null,"published":"2010-10-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["apereo"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2022-39369/"}