Apache .htaccess and .htpasswd Disclosure

medium Web App Scanning Plugin ID 98630

Synopsis

Apache .htaccess and .htpasswd Disclosure

Description

The Apache server does not properly restrict access to .htaccess and/or .htpasswd files. A remote unauthenticated attacker can download these files and potentially uncover important information.

Solution

Change the Apache configuration to block access to these files.

See Also

https://www.owasp.org/index.php/SCG_WS_Apache

Plugin Details

Severity: Medium

ID: 98630

Type: remote

Family: Web Servers

Published: 7/12/2019

Updated: 11/26/2021

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 2.2

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS Score Source: Tenable

Vulnerability Information

CPE: cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*

Reference Information

BID: 106685, 106742, 106743