PT-2018-16179 · Ruby · Private Address Check
Sajjad
·
Published
2018-06-13
·
Updated
2019-10-09
·
CVE-2018-3759
CVSS v2.0
4.3
Medium
| Vector | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
private address check ruby gem versions prior to 0.5.0
Description
The issue is related to a time-of-check time-of-use (TOCTOU) race condition. This occurs because the address the socket uses is not checked. Specifically, DNS entries with a TTL of 0 can trigger a scenario where the initial resolution is a public address, but the subsequent resolution is a private address.
Recommendations
For versions prior to 0.5.0, update to version 0.5.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of DNS entries with a TTL of 0 to minimize the risk of exploitation.
Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Private Address Check