CVE-2008-1098: Moin Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-8fj9-pj4p-4vq7
CWE-79
Published
Advisory Summary

CVE-2008-1098 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Moin libraries in the PyPI ecosystem. The issue involves moinmoin multiple cross-site scripting (xss) vulnerabilities. Remediation is available in the latest vendor maintenance releases.

CVE-2008-1098 at a Glance

CVE Identifier CVE-2008-1098
GHSA Identifier GHSA-8fj9-pj4p-4vq7
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 Moin
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2008-1098

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

moin fixed: Latest secure release
pip install moin>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show moin

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2008-1098, inspect your installed packages using pip:

pip show moin

Analyze the terminal output to locate any version of Moin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show moin command checks currently installed packages in your active Python environment.

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 Moin, 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

Multiple cross-site scripting (XSS) vulnerabilities in MoinMoin 1.5.8 and earlier allow remote attackers to inject arbitrary web script or HTML via (1) certain input processed by `formatter/text_gedit.py` (aka the gui editor formatter); (2) a page name, which triggers an injection in PageEditor.py when the page is successfully deleted by a victim in a DeletePage action; or (3) the destination page name for a RenamePage action, which triggers an injection in PageEditor.py when a victim's rename attempt fails because of a duplicate name. NOTE: the AttachFile XSS issue is already covered by CVE-2008-0781, and the login XSS issue is already covered by CVE-2008-0780. The issue has been fixed on [d0152eeb4499](http://hg.moinmo.in/moin/1.5/rev/d0152eeb4499) and [4ede07e792dd](http://hg.moinmo.in/moin/1.5/rev/4ede07e792dd).

CVE-2008-1098 Affected Moin Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
moin
PyPI
≤ 1.5.8

References

Frequently Asked Questions

What is CVE-2008-1098?
CVE-2008-1098 is a security vulnerability in Moin involving MoinMoin Multiple cross-site scripting (XSS) vulnerabilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Moin versions are affected?
Affected versions include releases prior to current release patches across affected packages: moin.
What version fixes CVE-2008-1098?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is moin affected?
Yes, moin is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2008-1098?
CVE-2008-1098 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 PyPI dependencies for CVE-2008-1098?
Run the dependency tree command: 'pip show moin'. 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-8fj9-pj4p-4vq7",
  "modified" : "2024-05-14T20:41:34Z",
  "published" : "2022-05-01T23:36:32Z",
  "aliases" : [ "CVE-2008-1098" ],
  "summary" : "MoinMoin Multiple cross-site scripting (XSS) vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in MoinMoin 1.5.8 and earlier allow remote attackers to inject arbitrary web script or HTML via (1) certain input processed by `formatter/text_gedit.py` (aka the gui editor formatter); (2) a page name, which triggers an injection in PageEditor.py when the page is successfully deleted by a victim in a DeletePage action; or (3) the destination page name for a RenamePage action, which triggers an injection in PageEditor.py when a victim's rename attempt fails because of a duplicate name.  NOTE: the AttachFile XSS issue is already covered by CVE-2008-0781, and the login XSS issue is already covered by CVE-2008-0780.\nThe issue has been fixed on [d0152eeb4499](http://hg.moinmo.in/moin/1.5/rev/d0152eeb4499) and [4ede07e792dd](http://hg.moinmo.in/moin/1.5/rev/4ede07e792dd).",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.5.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-1098"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/41037"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/716-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-April/msg00510.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-April/msg00538.html"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.5/rev/4ede07e792dd"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.5/rev/d0152eeb4499"
  }, {
    "type" : "WEB",
    "url" : "http://moinmo.in/SecurityFixes"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29262"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29444"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30031"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/33755"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1514"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200803-27.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/28173"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:41:34Z",
    "nvd_published_at" : "2008-03-05T20:44:00Z"
  }
}