GSD-2017-0904
Vulnerability from gsd - Updated: 2017-11-07 00:00Details
The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby's
Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security
measures, such as when used to blacklist private network addresses to prevent server-side
request forgery.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2017-0904",
"description": "The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby\u0027s Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures, such as when used to blacklist private network addresses to prevent server-side request forgery.",
"id": "GSD-2017-0904"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "private_address_check",
"purl": "pkg:gem/private_address_check"
}
}
],
"aliases": [
"CVE-2017-0904",
"GHSA-hxhj-hp9m-qwc4"
],
"details": "The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby\u0027s\nResolv.getaddresses method, which is OS-dependent and should not be relied upon for security\nmeasures, such as when used to blacklist private network addresses to prevent server-side\nrequest forgery.\n",
"id": "GSD-2017-0904",
"modified": "2017-11-07T00:00:00.000Z",
"published": "2017-11-07T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/jtdowney/private_address_check/issues/1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 6.8,
"type": "CVSS_V2"
},
{
"score": 8.1,
"type": "CVSS_V3"
}
],
"summary": "private_address_check Ruby Gem Resolv.getaddresses Server-Side Request Forgery"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "support@hackerone.com",
"DATE_PUBLIC": "2017-11-05T00:00:00",
"ID": "CVE-2017-0904",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "private_address_check ruby gem",
"version": {
"version_data": [
{
"version_value": "Versions before 0.4.0"
}
]
}
}
]
},
"vendor_name": "jtdowney"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby\u0027s Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures, such as when used to blacklist private network addresses to prevent server-side request forgery."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Use of Inherently Dangerous Function (CWE-242)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://hackerone.com/reports/287245",
"refsource": "MISC",
"url": "https://hackerone.com/reports/287245"
},
{
"name": "https://edoverflow.com/2017/ruby-resolv-bug/",
"refsource": "MISC",
"url": "https://edoverflow.com/2017/ruby-resolv-bug/"
},
{
"name": "https://github.com/jtdowney/private_address_check/issues/1",
"refsource": "CONFIRM",
"url": "https://github.com/jtdowney/private_address_check/issues/1"
},
{
"name": "https://hackerone.com/reports/287835",
"refsource": "MISC",
"url": "https://hackerone.com/reports/287835"
},
{
"name": "https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af",
"refsource": "CONFIRM",
"url": "https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2017-0904",
"cvss_v2": 6.8,
"cvss_v3": 8.1,
"date": "2017-11-07",
"description": "The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby\u0027s\nResolv.getaddresses method, which is OS-dependent and should not be relied upon for security\nmeasures, such as when used to blacklist private network addresses to prevent server-side\nrequest forgery.\n",
"gem": "private_address_check",
"ghsa": "hxhj-hp9m-qwc4",
"patched_versions": [
"\u003e= 0.4.0"
],
"title": "private_address_check Ruby Gem Resolv.getaddresses Server-Side Request Forgery",
"url": "https://github.com/jtdowney/private_address_check/issues/1"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c0.4.0",
"affected_versions": "All versions before 0.4.0",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-755",
"CWE-937"
],
"date": "2019-10-09",
"description": "The private_address_check ruby gem is vulnerable to a bypass due to use of Ruby\u0027s `Resolv.getaddresses` method, which is OS-dependent and should not be relied upon for security measures, such as when used to exclude private network addresses to prevent server-side request forgery.",
"fixed_versions": [
"0.4.0"
],
"identifier": "CVE-2017-0904",
"identifiers": [
"CVE-2017-0904"
],
"not_impacted": "All versions starting from 0.4.0",
"package_slug": "gem/private_address_check",
"pubdate": "2017-11-13",
"solution": "Upgrade to version 0.4.0 or above.",
"title": "Improper Handling of Exceptional Conditions",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2017-0904",
"https://edoverflow.com/2017/ruby-resolv-bug/",
"https://github.com/jtdowney/private_address_check/issues/1",
"https://hackerone.com/reports/287245"
],
"uuid": "65242745-7d20-4f13-addc-2f5e35f127e1"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:private_address_check_project:private_address_check:*:*:*:*:*:ruby:*:*",
"cpe_name": [],
"versionEndExcluding": "0.4.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve-assignments@hackerone.com",
"ID": "CVE-2017-0904"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby\u0027s Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures, such as when used to blacklist private network addresses to prevent server-side request forgery."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-755"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://hackerone.com/reports/287835",
"refsource": "MISC",
"tags": [
"Permissions Required",
"Third Party Advisory"
],
"url": "https://hackerone.com/reports/287835"
},
{
"name": "https://hackerone.com/reports/287245",
"refsource": "MISC",
"tags": [
"Issue Tracking",
"Mitigation",
"Patch",
"Third Party Advisory"
],
"url": "https://hackerone.com/reports/287245"
},
{
"name": "https://github.com/jtdowney/private_address_check/issues/1",
"refsource": "CONFIRM",
"tags": [
"Issue Tracking",
"Third Party Advisory"
],
"url": "https://github.com/jtdowney/private_address_check/issues/1"
},
{
"name": "https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af",
"refsource": "CONFIRM",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af"
},
{
"name": "https://edoverflow.com/2017/ruby-resolv-bug/",
"refsource": "MISC",
"tags": [
"Issue Tracking",
"Third Party Advisory"
],
"url": "https://edoverflow.com/2017/ruby-resolv-bug/"
}
]
}
},
"impact": {
"baseMetricV2": {
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 6.8,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.0"
},
"exploitabilityScore": 2.2,
"impactScore": 5.9
}
},
"lastModifiedDate": "2019-10-09T23:21Z",
"publishedDate": "2017-11-13T17:29Z"
}
}
}
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…