Staging Environment: Content and features may be unstable or change without notice.
Advisory details: gitlab / gem/rails/CVE-2019-5420
Advisory ID gitlab/gem/rails/CVE-2019-5420
Aliases CVE-2019-5420
Summary Improper Input Validation A remote code execution vulnerability in development mode Rails can allow an attacker to guess the automatically generated development mode secret token. This secret token can be used in combination with other Rails internals to escalate to a remote code execution exploit.
Status Published
Exploitability 2.0
Weighted Severity 0.0
Risk
Affected and Fixed Packages Package Details
Introduced and Fixed Package Commit Patches Package Commit Patches Details
Weaknesses (0)
There are no known CWE.
Data source Metasploit
Description This module exploits a vulnerability in Ruby on Rails. In development mode, a Rails application would use its name as the secret_key_base, and can be easily extracted by visiting an invalid resource for a path. As a result, this allows a remote user to create and deliver a signed serialized payload, load it by the application, and gain remote code execution.
Note
AKA:
  - doubletap
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
Reliability:
  - unknown-reliability
Ransomware campaign use Unknown
Source publication date March 13, 2019
Platform Linux
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/rails_double_tap.rb
Data source Exploit-DB
Date added May 2, 2019
Description Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)
Ransomware campaign use Known
Source publication date May 2, 2019
Exploit type remote
Platform linux
Source update date May 2, 2019
Source URL https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/rails_double_tap.rb
Data source Exploit-DB
Date added May 2, 2019
Description Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)
Ransomware campaign use Known
Source publication date May 2, 2019
Exploit type remote
Platform linux
Source update date May 2, 2019
Source URL https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/rails_double_tap.rb
Data source Metasploit
Description This module exploits a vulnerability in Ruby on Rails. In development mode, a Rails application would use its name as the secret_key_base, and can be easily extracted by visiting an invalid resource for a path. As a result, this allows a remote user to create and deliver a signed serialized payload, load it by the application, and gain remote code execution.
Note
AKA:
  - doubletap
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
Reliability:
  - unknown-reliability
Ransomware campaign use Unknown
Source publication date March 13, 2019
Platform Linux
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/rails_double_tap.rb

No EPSS data available for this advisory.

Patch URL
There are no known patches.
Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P Found at https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/rails/CVE-2019-5420.yml
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/rails/CVE-2019-5420.yml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

There are no SSVC decisions available.