CVE-2017-16894

Published: Nov 20, 2017 Last Modified: Apr 20, 2025
ExploitDB:
Other exploit source:
Google Dorks:
HIGH 7,5
Attack Vector: network
Attack Complexity: low
Privileges Required: none
User Interaction: none
Scope: unchanged
Confidentiality: high
Integrity: none
Availability: none
MEDIUM 5,0
Access Vector: network
Access Complexity: low
Authentication: none
Confidentiality: partial
Integrity: none
Availability: none

Description

AI Translation Available

In Laravel framework through 5.5.21, remote attackers can obtain sensitive information (such as externally usable passwords) via a direct request for the /.env URI. NOTE: this CVE is only about Laravel framework's writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php, which uses file_put_contents without restricting the .env permissions. The .env filename is not used exclusively by Laravel framework.

EPSS (Exploit Prediction Scoring System)

Trend Analysis

EPSS (Exploit Prediction Scoring System)

Prevede la probabilità di sfruttamento basata su intelligence sulle minacce e sulle caratteristiche della vulnerabilità.

EPSS Score
0,8879
Percentile
1,0th
Updated

EPSS Score Trend (Last 90 Days)

200

Exposure of Sensitive Information to an Unauthorized Actor

Draft
Common Consequences
Security Scopes Affected:
Confidentiality
Potential Impacts:
Read Application Data
Applicable Platforms
Technologies: Mobile, Not Technology-Specific, Web Based
View CWE Details
Exploit

PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 …

Verified Metasploit Framework (MSF)

PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit)

View Exploit Code →
Application

Laravel by Laravel

Version Range Affected
To 5.5.21 (inclusive)
cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unseria…
https://twitter.com/finnwea/status/967709791442341888
http://whiteboyz.xyz/laravel-env-file-vuln.html
Third Party Advisory URL Repurposed
http://whiteboyz.xyz/laravel-env-file-vuln.html
http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unseria…
https://twitter.com/finnwea/status/967709791442341888
http://whiteboyz.xyz/laravel-env-file-vuln.html
Third Party Advisory URL Repurposed
http://whiteboyz.xyz/laravel-env-file-vuln.html