Bazaar repository found

Description
  • Bazaar metadata directory (.bzr) was found in this folder. An attacker can extract sensitive information by requesting the hidden metadata directory that version control tool Bazaar creates. The metadata directories are used for development purposes to keep track of development changes to a set of source code before it is committed back to a central repository (and vice-versa). When code is rolled to a live server from a repository, it is supposed to be done as an export rather than as a local working copy, and hence this problem.
Remediation
  • Remove these files from production systems or restrict access to the .bzr directory. To deny access to all the .bzr folders you need to add the following lines in the appropriate context (either global config, or vhost/directory, or from .htaccess): <code><pre> <Directory ~ "\.bzr"> Order allow,deny Deny from all </Directory> </pre></code>
References