CWE-530: Information Leak Through Backup (.~bk) Files
Information Leak Through Backup (.~bk) Files
Weakness ID: 530 (Weakness Variant)
Status: Incomplete
Description
Description Summary
Often, old files are renamed with an extension such as .~bk to
distinguish them from production files. The source code for old files that have
been renamed in this manner and left in the webroot can often be
retrieved.
Time of Introduction
Implementation
Operation
Common Consequences
Scope
Effect
Confidentiality
At a minimum, an attacker who retrieves this file would have all the
information contained in it, whether that be database calls, the format
of parameters accepted by the application, or simply information
regarding the architectural structure of your site.
Potential Mitigations
Phase
Description
Recommendations include implementing a security policy within your
organization that prohibits backing up web application source code in
the webroot.