The product stores sensitive data under the web document root with insufficient access control, which might make it accessible to untrusted parties.
View on MITREBesides public-facing web pages and code, products may store sensitive data, code that is not directly invoked, or other files under the web document root of the web server. If the server is not configured or otherwise used to prevent direct access to those files, then attackers may obtain this sensitive data.
Avoid storing information under the web root directory.
Access control permissions should be set to prevent reading/writing of sensitive files inside/outside of the web directory.
No detection method information available for this CWE.
No relationship information available for this CWE.
CWE-219: Storage of File with Sensitive Data Under Web Root is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product stores sensitive data under the web document root with insufficient access control, which might make it accessible to untrusted parties. Besides public-facing web pages and code, products may store sensitive data, code that is not directly invoked, or other files under the web document root of the web server. If the server is not configured or otherwise used to prevent direct access to those files, then attackers may obtain this sensitive data.
If exploited, CWE-219 (Storage of File with Sensitive Data Under Web Root) it can compromise Confidentiality, leading to outcomes such as Read Application Data.
Recommended mitigations for CWE-219 include: Avoid storing information under the web root directory. Access control permissions should be set to prevent reading/writing of sensitive files inside/outside of the web directory.
CWE-219 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.
MITRE documents real CVEs mapped to CWE-219, including CVE-2005-1835, CVE-2005-2217, CVE-2002-1449, CVE-2002-0943 and CVE-2005-1645. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.
A CWE (Common Weakness Enumeration) like CWE-219 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.