CVE-2018-9856: Kotti Kotti CSRF Vulnerability
HIGHCVE-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
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).
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.
pip install Kotti>=1.3.2
pip install Kotti>=2.0.0b2
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
CVE-2018-9856 Affected Kotti Versions
2 component(s)| 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?
Which Kotti versions are affected?
What version fixes CVE-2018-9856?
Is Kotti affected?
What is the CVSS score of CVE-2018-9856?
What CWE is associated with CVE-2018-9856?
How can I check PyPI dependencies for CVE-2018-9856?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}