CVE-2010-1618: Apereo/phpcas Cross-Site Scripting Vulnerability
MODERATECVE-2010-1618 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Apereo/phpcas libraries in the Packagist ecosystem. The issue involves phpcas client library and moodle cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 1.1.0, 1.8.12, 1.9.8.
CVE-2010-1618 at a Glance
How to Fix CVE-2010-1618
To remediate this vulnerability, upgrade all affected Apereo/phpcas dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade apereo/phpcas to 1.1.0
Upgrade moodle/moodle to 1.8.12
Upgrade moodle/moodle to 1.9.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for apereo/phpcas
How to Check if You Are Affected
To determine whether your application is affected by CVE-2010-1618, inspect your project dependencies for Apereo/phpcas:
inspect dependencies for apereo/phpcas
Analyze the terminal output to locate any version of Apereo/phpcas in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Apereo/phpcas, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2010-1618 Affected Apereo/phpcas Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apereo/phpcas
|
Packagist |
< 1.1.0
|
1.1.0
|
|
moodle/moodle
|
Packagist |
≥ 1.8.0
< 1.8.12
|
1.8.12
|
|
moodle/moodle
|
Packagist |
≥ 1.9.0
< 1.9.8
|
1.9.8
|
References
Frequently Asked Questions
What is CVE-2010-1618?
Which Apereo/phpcas versions are affected?
What version fixes CVE-2010-1618?
Is apereo/phpcas affected?
Is moodle/moodle affected?
What CWE is associated with CVE-2010-1618?
How can I check Packagist dependencies for CVE-2010-1618?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-45ch-hxgr-vx8j",
"modified" : "2024-02-07T22:50:39Z",
"published" : "2022-05-13T01:13:09Z",
"aliases" : [ "CVE-2010-1618" ],
"summary" : "phpCAS client library and Moodle Cross-site Scripting vulnerability",
"details" : "Cross-site scripting (XSS) vulnerability in the phpCAS client library before 1.1.0, as used in Moodle 1.8.x before 1.8.12 and 1.9.x before 1.9.8, allows remote attackers to inject arbitrary web script or HTML via a crafted URL, which is not properly handled in an error message.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "apereo/phpcas"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "1.8.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.0"
}, {
"fixed" : "1.9.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-1618"
}, {
"type" : "WEB",
"url" : "https://github.com/apereo/phpCAS/commit/021633112198b37555b35340cde884d1016d9e47"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apereo/phpCAS"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2010-05/msg00001.html"
}, {
"type" : "WEB",
"url" : "http://moodle.org/security"
}, {
"type" : "WEB",
"url" : "http://www.ja-sig.org/issues/browse/PHPCAS-52"
}, {
"type" : "WEB",
"url" : "http://www.ja-sig.org/wiki/display/CASC/phpCAS+ChangeLog"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2010/1107"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-07T22:50:39Z",
"nvd_published_at" : "2010-04-29T21:30:00Z"
}
}