ID CVE-2018-3759
Summary private_address_check ruby gem before 0.5.0 is vulnerable to a time-of-check time-of-use (TOCTOU) race condition due to the address the socket uses not being checked. DNS entries with a TTL of 0 can trigger this case where the initial resolution is a public address but the subsequent resolution is a private address.
References
Vulnerable Configurations
  • Private Address Check Project 0.1.0 for Ruby
    cpe:2.3:a:private_address_check_project:private_address_check:0.1.0:-:-:-:-:ruby
  • Private Address Check Project 0.2.0 for Ruby
    cpe:2.3:a:private_address_check_project:private_address_check:0.2.0:-:-:-:-:ruby
  • Private Address Check Project 0.3.0 for Ruby
    cpe:2.3:a:private_address_check_project:private_address_check:0.3.0:-:-:-:-:ruby
  • Private Address Check Project 0.4.0 for Ruby
    cpe:2.3:a:private_address_check_project:private_address_check:0.4.0:-:-:-:-:ruby
  • Private Address Check Project 0.4.1 for Ruby
    cpe:2.3:a:private_address_check_project:private_address_check:0.4.1:-:-:-:-:ruby
CVSS
Base: 4.3
Impact:
Exploitability:
CWE CWE-362
CAPEC
  • Leveraging Race Conditions
    This attack targets a race condition occurring when multiple processes access and manipulate the same resource concurrently and the outcome of the execution depends on the particular order in which the access takes place. The attacker can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance a race condition can occur while accessing a file, the attacker can trick the system by replacing the original file with his version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
    This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. The typical example is the file access. The attacker can leverage a file access race condition by "running the race", meaning that he would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the attacker could do something such as replace the file and cause an escalation of privilege.
refmap via4
misc https://github.com/jtdowney/private_address_check/commit/4068228187db87fea7577f7020099399772bb147
Last major update 13-06-2018 - 11:29
Published 13-06-2018 - 11:29
Last modified 08-08-2018 - 14:35
Back to Top