{ "id": "CVE-2017-16894", "sourceIdentifier": "cve@mitre.org", "published": "2017-11-20T01:29:00.227", "lastModified": "2018-03-09T02:29:01.043", "vulnStatus": "Modified", "descriptions": [ { "lang": "en", "value": "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." }, { "lang": "es", "value": "En el framework Laravel hasta la versi\u00f3n 5.5.21, los atacantes remotos pueden obtener informaci\u00f3n sensible (como contrase\u00f1as de uso externo) mediante una petici\u00f3n directa para la URI /.env. NOTA: este CVE solo trata de la funci\u00f3n writeNewEnvironmentFileWith del framework Laravel en src/Illuminate/Foundation/Console/KeyGenerateCommand.php que utiliza file_put_contents sin restringir los permisos .env. El nombre de archivo .env no es de uso exclusivo del framework Laravel." } ], "metrics": { "cvssMetricV30": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE", "baseScore": 7.5, "baseSeverity": "HIGH" }, "exploitabilityScore": 3.9, "impactScore": 3.6 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "2.0", "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N", "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "NONE", "availabilityImpact": "NONE", "baseScore": 5.0 }, "baseSeverity": "MEDIUM", "exploitabilityScore": 10.0, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false } ] }, "weaknesses": [ { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-200" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*", "versionEndIncluding": "5.5.21", "matchCriteriaId": "A8C7A7F1-FA13-4CC6-A7C0-8D40775CB404" } ] } ] } ], "references": [ { "url": "http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html", "source": "cve@mitre.org" }, { "url": "http://whiteboyz.xyz/laravel-env-file-vuln.html", "source": "cve@mitre.org", "tags": [ "Third Party Advisory" ] }, { "url": "https://twitter.com/finnwea/status/967709791442341888", "source": "cve@mitre.org" } ] }