CVE-2018-9856: Kotti Kotti CSRF Vulnerability

HIGH
Advisory Identifier: GHSA-3hq4-f2v6-q338
CVSS 8.8
CWE-352
Published
Advisory Summary

CVE-2018-9856 is a HIGH (CVSS 8.8) kotti csrf vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Kotti libraries in the PyPI ecosystem. The issue involves kotti csrf in the local roles implementation. Remediation is available by upgrading affected packages to version 1.3.2, 2.0.0b2.

CVE-2018-9856 at a Glance

CVE Identifier CVE-2018-9856
GHSA Identifier GHSA-3hq4-f2v6-q338
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Kotti
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-9856

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

Kotti fixed: 1.3.2
pip install Kotti>=1.3.2
Kotti fixed: 2.0.0b2
pip install Kotti>=2.0.0b2
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 Kotti

How to Check if You Are Affected

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

pip show Kotti

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Kotti, 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

Kotti before 1.3.2 and 2.x before 2.0.0b2 has CSRF in the local roles implementation, as demonstrated by triggering a permission change via a `/admin-document/@@share` request.

CVE-2018-9856 Affected Kotti Versions

2 component(s)
Fixed Versions:
1.3.22.0.0b2
Product / Package Ecosystem Affected Versions Fixed Version
Kotti
PyPI
< 1.3.2
1.3.2
Kotti
PyPI
≥ 2.0.0a1
< 2.0.0b2
2.0.0b2

References

Frequently Asked Questions

What is CVE-2018-9856?
CVE-2018-9856 is a security vulnerability in Kotti involving Kotti CSRF in the local roles implementation under CWE-352: Cross-Site Request Forgery (CSRF).
Which Kotti versions are affected?
Affected versions include releases prior to 1.3.2, 2.0.0b2 across affected packages: Kotti.
What version fixes CVE-2018-9856?
Upgrading to 1.3.2, 2.0.0b2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Kotti affected?
Yes, Kotti is affected in releases prior to 1.3.2, 2.0.0b2. Upgrade your dependency to 1.3.2, 2.0.0b2 or later.
What is the CVSS score of CVE-2018-9856?
CVE-2018-9856 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-9856?
CVE-2018-9856 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2018-9856?
Run the dependency tree command: 'pip show Kotti'. 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-3hq4-f2v6-q338",
  "modified" : "2024-09-27T21:18:49Z",
  "published" : "2018-07-12T20:30:30Z",
  "aliases" : [ "CVE-2018-9856" ],
  "summary" : "Kotti CSRF in the local roles implementation",
  "details" : "Kotti before 1.3.2 and 2.x before 2.0.0b2 has CSRF in the local roles implementation, as demonstrated by triggering a permission change via a `/admin-document/@@share` request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Kotti"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Kotti"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0a1"
      }, {
        "fixed" : "2.0.0b2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0b1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-9856"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Kotti/Kotti/issues/551"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Kotti/Kotti/commit/69d3c8a5d7203ddaec5ced5901acf87baddd76be"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Kotti/Kotti"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-3hq4-f2v6-q338"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/kotti/PYSEC-2018-10.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:55:14Z",
    "nvd_published_at" : null
  }
}