Exploit database

Vulnerability

CVE-2019-5420

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 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.

CVE Program

Exploit source choices

9 sources
Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability
MSF-multi--http--rails_double_tapMetasploitLinux / remote

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.

2019-03-13rails_double_tap.rb
mpgn/rails-doubletap-rce
GH-b7ce581cd089d3d114c10e0a9e48e759GitHubUnofficial GitHub source

RCE on Rails 5.2.2 using a path traversal (CVE-2019-5418) and a deserialization of Ruby objects (CVE-2019-5420)

2019-03-2386 files · 132 stars
j4k0m/cve-2019-5420
GH-aa49cb48682d689e0f62bf2bc6104d7bGitHubUnofficial GitHub source

A vulnerability can allow an attacker to guess the automatically generated development mode secret token.

2021-09-063 files · 5 stars
scumdestroy/cve-2019-5420.rb
GH-72383a9948c97d736d94a198e5f50a6fGitHubUnofficial GitHub source

POC Exploit written in Ruby

2021-05-112 files · 3 stars
anastaoutaou/cve-2019-5420
GH-cbb020abeabcf5b412df6b8c5b7b1e24GitHubUnofficial GitHub source

anastaoutaou/cve-2019-5420 source repository

2021-01-112 files · 0 stars
apkadmin/payloadsall
GH-7268084368e7f193f26cd49dc1f2f600GitHubUnofficial GitHub source

apkadmin/payloadsall source repository

2019-12-14410 files · 0 stars
chanchalpatra/payload
GH-af8ba76fda08b6bca56d89d0676d968eGitHubUnofficial GitHub source

chanchalpatra/payload source repository

2020-01-07329 files · 0 stars