Hidden File Found

ID

hidden_file_found

Severity

high

Kind

Information Disclosure

CWE

538

Description

A sensitive file was identified as accessible or available. This may leak administrative, configuration, or credential information which can be leveraged by a malicious individual to further attack the system or conduct social engineering efforts.

Rationale

Hidden or sensitive files exposed on web servers can leak credentials, API keys, database connection strings, or administrative interfaces. Attackers scan for common patterns like .git directories, backup files, or configuration files to gain unauthorized access or extract sensitive data. This information disclosure enables privilege escalation, system compromise, or lateral movement within the infrastructure.

Remediation

Consider whether or not the component is actually required in production, if it isn’t then disable it. If it is then ensure access to it requires appropriate authentication and authorization, or limit exposure to internal systems or specific source IPs, etc.