漏洞描述
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.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
cve.mitre.orghttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16894↗packetstormsecurity.comhttps://packetstormsecurity.com/files/cve/CVE-2017-16894↗whiteboyz.xyzhttp://whiteboyz.xyz/laravel-env-file-vuln.html↗twitter.comhttps://twitter.com/finnwea/status/967709791442341888↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2017-16894↗