WordPress Debug Mode

medium Web App Scanning Plugin ID 98407

Synopsis

WordPress Debug Mode

Description

The web server on the remote host allows read access to WordPress debug file /wp-content/debug.log which contains debugging information such as PHP notices, warnings and errors. That means WordPress debug mode is enabled or if disabled log file has not been deleted.

A remote attacker can exploit this to gain more knowledge about the host, allowing an attacker to conduct further attacks.

Solution

Restrict access to /wp-content/debug.log file or remove it after disabling debug mode in wp-config.php with: define('WP_DEBUG', false); define( 'WP_DEBUG_LOG', false);

See Also

https://codex.wordpress.org/Debugging_in_WordPress

Plugin Details

Severity: Medium

ID: 98407

Type: remote

Published: 3/25/2019

Updated: 1/17/2023

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 2.9

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

CVSS Score Source: Tenable

Reference Information