CVE-2012-1209: Forkcms/forkcms Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-v3fg-x8jw-m974
CWE-79
Published
Advisory Summary

CVE-2012-1209 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Forkcms/forkcms libraries in the Packagist ecosystem. The issue involves fork cms xss via highlight parameter. Remediation is available by upgrading affected packages to version 3.2.5.

CVE-2012-1209 at a Glance

CVE Identifier CVE-2012-1209
GHSA Identifier GHSA-v3fg-x8jw-m974
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 Forkcms/forkcms
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2012-1209

To remediate this vulnerability, upgrade all affected Forkcms/forkcms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

forkcms/forkcms fixed: 3.2.5
Upgrade forkcms/forkcms to 3.2.5
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 forkcms/forkcms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2012-1209, inspect your project dependencies for Forkcms/forkcms:

inspect dependencies for forkcms/forkcms

Analyze the terminal output to locate any version of Forkcms/forkcms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), 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 Forkcms/forkcms, 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 `backend/core/engine/base.php` in Fork CMS 3.2.4 and possibly other versions before 3.2.5 allows remote attackers to inject arbitrary web script or HTML via the highlight parameter.

CVE-2012-1209 Affected Forkcms/forkcms Versions

1 component(s)
Fixed Versions:
3.2.5
Product / Package Ecosystem Affected Versions Fixed Version
forkcms/forkcms
Packagist
< 3.2.5
3.2.5

References

Frequently Asked Questions

What is CVE-2012-1209?
CVE-2012-1209 is a security vulnerability in Forkcms/forkcms involving Fork CMS XSS via Highlight Parameter under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Forkcms/forkcms versions are affected?
Affected versions include releases prior to 3.2.5 across affected packages: forkcms/forkcms.
What version fixes CVE-2012-1209?
Upgrading to 3.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is forkcms/forkcms affected?
Yes, forkcms/forkcms is affected in releases prior to 3.2.5. Upgrade your dependency to 3.2.5 or later.
What CWE is associated with CVE-2012-1209?
CVE-2012-1209 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-2012-1209?
Run the dependency tree command: 'inspect dependencies for forkcms/forkcms'. 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-v3fg-x8jw-m974",
  "modified" : "2024-01-12T16:43:17Z",
  "published" : "2022-05-14T03:51:05Z",
  "aliases" : [ "CVE-2012-1209" ],
  "summary" : "Fork CMS XSS via Highlight Parameter",
  "details" : "Cross-site scripting (XSS) vulnerability in `backend/core/engine/base.php` in Fork CMS 3.2.4 and possibly other versions before 3.2.5 allows remote attackers to inject arbitrary web script or HTML via the highlight parameter.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "forkcms/forkcms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.2.4"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1209"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/forkcms/forkcms/commit/c8ec9c58a6b3c46cdd924532c1de99bcda6072ed"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/forkcms/forkcms/commit/df75e0797a6540c4d656969a2e7df7689603b2cf"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/73393"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/forkcms/forkcms"
  }, {
    "type" : "WEB",
    "url" : "http://www.fork-cms.com/blog/detail/fork-cms-3-2-5-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T16:43:17Z",
    "nvd_published_at" : "2012-02-24T13:55:00Z"
  }
}