GSD-2019-13146
Vulnerability from gsd - Updated: 2019-07-01 00:00Details
Due to unvalidated input, an attacker can pass in
arbitrary variants via query parameters.
If an application treats variants as trusted, this can
lead to potential vulnerabilities like SQL injection
or cross-site scripting (XSS). For instance:
landing_page = field_test(:landing_page)
Page.where("key = '#{landing_page}'")
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2019-13146",
"description": "The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).",
"id": "GSD-2019-13146"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "field_test",
"purl": "pkg:gem/field_test"
}
}
],
"aliases": [
"CVE-2019-13146",
"GHSA-wg9m-gw3h-hg83"
],
"details": "Due to unvalidated input, an attacker can pass in\narbitrary variants via query parameters.\n\nIf an application treats variants as trusted, this can\nlead to potential vulnerabilities like SQL injection\nor cross-site scripting (XSS). For instance:\n\nlanding_page = field_test(:landing_page)\nPage.where(\"key = \u0027#{landing_page}\u0027\")\n",
"id": "GSD-2019-13146",
"modified": "2019-07-01T00:00:00.000Z",
"published": "2019-07-01T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/ankane/field_test/issues/17"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 5.3,
"type": "CVSS_V3"
}
],
"summary": "Arbitrary Variants Via Query Parameters"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2019-13146",
"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 field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS)."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://rubygems.org/gems/field_test",
"refsource": "MISC",
"url": "https://rubygems.org/gems/field_test"
},
{
"name": "https://github.com/ankane/field_test/issues/17",
"refsource": "MISC",
"url": "https://github.com/ankane/field_test/issues/17"
},
{
"name": "109114",
"refsource": "BID",
"url": "http://www.securityfocus.com/bid/109114"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2019-13146",
"cvss_v3": 5.3,
"date": "2019-07-01",
"description": "Due to unvalidated input, an attacker can pass in\narbitrary variants via query parameters.\n\nIf an application treats variants as trusted, this can\nlead to potential vulnerabilities like SQL injection\nor cross-site scripting (XSS). For instance:\n\nlanding_page = field_test(:landing_page)\nPage.where(\"key = \u0027#{landing_page}\u0027\")\n",
"gem": "field_test",
"ghsa": "wg9m-gw3h-hg83",
"patched_versions": [
"\u003e= 0.3.1"
],
"title": "Arbitrary Variants Via Query Parameters",
"unaffected_versions": [
"\u003c 0.3.0"
],
"url": "https://github.com/ankane/field_test/issues/17"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "=0.3.0",
"affected_versions": "Version 0.3.0",
"cvss_v2": "AV:N/AC:L/Au:N/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-74",
"CWE-937"
],
"date": "2019-07-16",
"description": "The `field_test` gem for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).",
"fixed_versions": [
"0.3.1"
],
"identifier": "CVE-2019-13146",
"identifiers": [
"CVE-2019-13146"
],
"not_impacted": "All versions before 0.3.0, all versions after 0.3.0",
"package_slug": "gem/field_test",
"pubdate": "2019-07-09",
"solution": "Upgrade to version 0.3.1 or above.",
"title": "Improper Input Validation",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2019-13146"
],
"uuid": "87415172-7565-4604-bf58-4ca79ba5aedc"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:field_test_project:field_test:0.3.0:*:*:*:*:ruby:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2019-13146"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS)."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-74"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://rubygems.org/gems/field_test",
"refsource": "MISC",
"tags": [
"Product",
"Third Party Advisory"
],
"url": "https://rubygems.org/gems/field_test"
},
{
"name": "https://github.com/ankane/field_test/issues/17",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory"
],
"url": "https://github.com/ankane/field_test/issues/17"
},
{
"name": "109114",
"refsource": "BID",
"tags": [
"Third Party Advisory"
],
"url": "http://www.securityfocus.com/bid/109114"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 5.0,
"confidentialityImpact": "NONE",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:N/C:N/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
"version": "3.0"
},
"exploitabilityScore": 3.9,
"impactScore": 1.4
}
},
"lastModifiedDate": "2020-08-24T17:37Z",
"publishedDate": "2019-07-09T18: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…