CVE-2019-5420
rubygem-rails: Weak secret token leading to possible code execution
Kaynağa göre önem derecesi
Trivy'nin kendi etiketi CRITICAL. Kritik diyenler: NVD, GHSA, Ruby Advisory DB. Daha düşük diyenler: Red Hat (orta).
Açıklama
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.
Etkilenen paketler ve düzeltilmiş sürümler
| Kaynak | Paket | Düzeltildiği sürüm |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | railties | 5.2.2.1 |
| rubygems::Ruby Advisory Database | railties | ~> 5.2.2, >= 5.2.2.1, >= 6.0.0.beta3 |
| debian 11 | rails | 2:5.2.2.1+dfsg-1 |
| debian 12 | rails | 2:5.2.2.1+dfsg-1 |
| debian 13 | rails | 2:5.2.2.1+dfsg-1 |
| debian 14 | rails | 2:5.2.2.1+dfsg-1 |
| echo | rails | 2:5.2.2.1+dfsg-1 |
Referanslar
- http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html
- https://access.redhat.com/security/cve/CVE-2019-5420
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/railties/CVE-2019-5420.yml
- https://groups.google.com/d/msg/rubyonrails-security/IsQKvDqZdKw/UYgRCJz2CgAJ
- https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw
- https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/
14 referansın hepsi
- https://nvd.nist.gov/vuln/detail/CVE-2019-5420
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- https://www.cve.org/CVERecord?id=CVE-2019-5420
- https://www.exploit-db.com/exploits/46785
- https://www.exploit-db.com/exploits/46785/