Laravel Framework up to 5.5.21 Permission /.env writeNewEnvironmentFileWith Password information disclosure
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.1 | $0-$5k | 0.00 |
Summary
A vulnerability marked as problematic has been reported in Laravel Framework up to 5.5.21. The impacted element is the function writeNewEnvironmentFileWith of the file /.env of the component Permission. Performing a manipulation as part of Password results in information disclosure (Password).
This vulnerability was named CVE-2017-16894. The attack may be initiated remotely. In addition, an exploit is available.
Details
A vulnerability was found in Laravel Framework up to 5.5.21. It has been classified as problematic. This affects the function writeNewEnvironmentFileWith of the file /.env of the component Permission. The manipulation as part of a Password leads to a information disclosure vulnerability (Password). CWE is classifying the issue as CWE-200. The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. This is going to have an impact on confidentiality. The summary by CVE is:
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. The writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php does not restrict the .env permissions.
The weakness was presented 11/20/2017 (Website). It is possible to read the advisory at whiteboyz.xyz. This vulnerability is uniquely identified as CVE-2017-16894 since 11/19/2017. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details and a public exploit are known. The attack technique deployed by this issue is T1592 according to MITRE ATT&CK.
A public exploit has been developed by Ståle Pettersen/aushack in Ruby/Metasploit and been published 10 months after the advisory. The exploit is shared for download at github.com. It is declared as highly functional.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
The vulnerability is also documented in the vulnerability database at Exploit-DB (47129). Be aware that VulDB is the high quality source for vulnerability data.
Product
Vendor
Name
Version
- 5.5.0
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.15
- 5.5.16
- 5.5.17
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.1
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Name: PasswordClass: Information disclosure / Password
CWE: CWE-200 / CWE-284 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Highly functional
Author: Ståle Pettersen/aushack
Programming Language: 🔍
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
MetaSploit ID: exploit/unix/http/laravel_token_unserialize_exec
MetaSploit Name: PHP Laravel Framework token Unserialize Remote Command Execution
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
Exploit Delay Time: 🔍
Timeline
11/19/2017 🔍11/19/2017 🔍
11/20/2017 🔍
11/20/2017 🔍
08/07/2018 🔍
01/01/2025 🔍
Sources
Advisory: 153641Status: Not defined
CVE: CVE-2017-16894 (🔍)
GCVE (CVE): GCVE-0-2017-16894
GCVE (VulDB): GCVE-100-109743
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 11/20/2017 13:48Updated: 01/01/2025 11:24
Changes: 11/20/2017 13:48 (40), 11/20/2017 13:49 (18), 11/12/2019 13:38 (1), 01/11/2023 07:40 (4), 08/25/2024 11:45 (8), 08/25/2024 11:48 (17), 01/01/2025 11:24 (10)
Complete: 🔍
Committer: misc, maze
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.