Bug 1689154 (CVE-2019-5420) - CVE-2019-5420 rubygem-rails: Weak secret token leading to possible code execution
Summary: CVE-2019-5420 rubygem-rails: Weak secret token leading to possible code execu...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2019-5420
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1689155
Blocks: 1689156
TreeView+ depends on / blocked
 
Reported: 2019-03-15 10:19 UTC by Andrej Nemec
Modified: 2021-02-04 00:52 UTC (History)
13 users (show)

Fixed In Version: rubygem-rails 6.0.0.beta3, rubygem-rails 5.2.2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-10 10:50:56 UTC


Attachments (Terms of Use)

Description Andrej Nemec 2019-03-15 10:19:55 UTC
With some knowledge of a target application it is possible for 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.

External References:

https://groups.google.com/d/msg/rubyonrails-security/IsQKvDqZdKw/UYgRCJz2CgAJ

Comment 1 Andrej Nemec 2019-03-15 10:20:47 UTC
Created rubygem-rails tracking bugs for this issue:

Affects: fedora-all [bug 1689155]

Comment 2 Andrej Nemec 2019-03-15 10:32:15 UTC
References:

https://seclists.org/oss-sec/2019/q1/176

Comment 4 Stefan Cornelius 2019-03-18 12:34:07 UTC
Looks like this was introduced via https://github.com/rails/rails/commit/69f976b859cae7f9d050152103da018b7f5dda6d

The versions we ship do not contain this change yet and are not affected by this issue.

Comment 5 Stefan Cornelius 2019-03-18 12:34:09 UTC
Statement:

This issue did not affect the versions of rh-ror42-rubygem-rails and rh-ror50-rubygem-rails as shipped with Red Hat Software Collections.

Comment 6 Jun Aruga 2019-03-20 15:02:04 UTC
Note for affected versions.

> Versions Affected:  6.0.0.X, 5.2.X.
> Fixed Versions:     6.0.0.beta3, 5.2.2.1 
> https://groups.google.com/d/msg/rubyonrails-security/IsQKvDqZdKw/UYgRCJz2CgAJ


Note You need to log in before you can comment on or make changes to this bug.