GSD-2020-16254
Vulnerability from gsd - Updated: 2020-08-04 00:00Details
Chartkick is vulnerable to CSS injection
if user input is passed to the width or height option.
<%= line_chart data, width: params[:width], height: params[:height] %>
An attacker can set additional CSS properties, like:
<%= line_chart data, width: "100%; background-image: url('http://example.com/image.png')" %>
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2020-16254",
"description": "The Chartkick gem through 3.3.2 for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute).",
"id": "GSD-2020-16254"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "chartkick",
"purl": "pkg:gem/chartkick"
}
}
],
"aliases": [
"CVE-2020-16254",
"GHSA-3j95-fjv2-3m4p"
],
"details": "Chartkick is vulnerable to CSS injection\nif user input is passed to the width or height option.\n\n\u003c%= line_chart data, width: params[:width], height: params[:height] %\u003e\n\nAn attacker can set additional CSS properties, like:\n\n\u003c%= line_chart data, width: \"100%; background-image: url(\u0027http://example.com/image.png\u0027)\" %\u003e\n",
"id": "GSD-2020-16254",
"modified": "2020-08-04T00:00:00.000Z",
"published": "2020-08-04T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/ankane/chartkick/issues/546"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 6.1,
"type": "CVSS_V3"
}
],
"summary": "CSS injection with width and height options"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2020-16254",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "The Chartkick gem through 3.3.2 for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute)."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/ankane/chartkick",
"refsource": "MISC",
"url": "https://github.com/ankane/chartkick"
},
{
"name": "https://github.com/ankane/chartkick/issues/546",
"refsource": "MISC",
"url": "https://github.com/ankane/chartkick/issues/546"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2020-16254",
"cvss_v3": 6.1,
"date": "2020-08-04",
"description": "Chartkick is vulnerable to CSS injection\nif user input is passed to the width or height option.\n\n\u003c%= line_chart data, width: params[:width], height: params[:height] %\u003e\n\nAn attacker can set additional CSS properties, like:\n\n\u003c%= line_chart data, width: \"100%; background-image: url(\u0027http://example.com/image.png\u0027)\" %\u003e\n",
"gem": "chartkick",
"ghsa": "3j95-fjv2-3m4p",
"patched_versions": [
"\u003e= 3.4.0"
],
"title": "CSS injection with width and height options",
"url": "https://github.com/ankane/chartkick/issues/546"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c=3.3.2",
"affected_versions": "All versions up to 3.3.2",
"cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-74",
"CWE-937"
],
"date": "2020-08-06",
"description": "The Chartkick gem for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute).",
"fixed_versions": [
"3.4.0"
],
"identifier": "CVE-2020-16254",
"identifiers": [
"CVE-2020-16254"
],
"not_impacted": "All versions after 3.3.2",
"package_slug": "gem/chartkick",
"pubdate": "2020-08-05",
"solution": "Upgrade to version 3.4.0 or above.",
"title": "Injection Vulnerability",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2020-16254"
],
"uuid": "63640df7-b3e2-481b-a39d-16c4d264ba14"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:chartkick_project:chartkick:*:*:*:*:*:ruby:*:*",
"cpe_name": [],
"versionEndIncluding": "3.3.2",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2020-16254"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "The Chartkick gem through 3.3.2 for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute)."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-74"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/ankane/chartkick/issues/546",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory"
],
"url": "https://github.com/ankane/chartkick/issues/546"
},
{
"name": "https://github.com/ankane/chartkick",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/ankane/chartkick"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 4.3,
"confidentialityImpact": "NONE",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": true
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7
}
},
"lastModifiedDate": "2020-08-06T20:33Z",
"publishedDate": "2020-08-05T20:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…