CVE-2010-1618: Apereo/phpcas Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-45ch-hxgr-vx8j
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2010-1618
GHSA Identifier GHSA-45ch-hxgr-vx8j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Apereo/phpcas
Package Ecosystem Packagist
Published Date
Last Updated

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.

apereo/phpcas fixed: 1.1.0
Upgrade apereo/phpcas to 1.1.0
moodle/moodle fixed: 1.8.12
Upgrade moodle/moodle to 1.8.12
moodle/moodle fixed: 1.9.8
Upgrade moodle/moodle to 1.9.8
Verify Direct and Transitive Dependencies

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

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.

CVE-2010-1618 Affected Apereo/phpcas Versions

3 component(s)
Fixed Versions:
1.1.01.8.121.9.8
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?
CVE-2010-1618 is a security vulnerability in Apereo/phpcas involving phpCAS client library and Moodle Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Apereo/phpcas versions are affected?
Affected versions include releases prior to 1.1.0, 1.8.12, 1.9.8 across affected packages: apereo/phpcas, moodle/moodle.
What version fixes CVE-2010-1618?
Upgrading to 1.1.0, 1.8.12, 1.9.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apereo/phpcas affected?
Yes, apereo/phpcas is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
Is moodle/moodle affected?
Yes, moodle/moodle is affected in releases prior to 1.8.12, 1.9.8. Upgrade your dependency to 1.8.12, 1.9.8 or later.
What CWE is associated with CVE-2010-1618?
CVE-2010-1618 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2010-1618?
Run the dependency tree command: 'inspect dependencies for apereo/phpcas'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}