MEDIUM
GHSA-hxhj-hp9m-qwc4
private_address_check vulnerable to bypass of Resolv.getaddresses method
Quick fix
GHSA-hxhj-hp9m-qwc4 — private_address_check: upgrade to the fixed version with the command below.
bundle update private_address_checkDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-0904[ADVISORY]
- https://github.com/jtdowney/private_address_check/issues/1[WEB]
- https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af[WEB]
- https://hackerone.com/reports/287245[WEB]
- https://hackerone.com/reports/287835[WEB]
- https://edoverflow.com/2017/ruby-resolv-bug[WEB]