CWE-211
OWASP 2013-A5
OWASP 2017-A6

PHP display_errors Is Enabled

Severity:
Low
Summary

Invicti detected that the display_errors PHP directive is set to enable verbose error messages.

Impact

When you enable PHP error messages, an attacker might be able to gain important information about the inner workings of your application. In some cases, an attacker might even enable the abuse of otherwise unexploitable vulnerabilities, such as error based XML External Entity attacks.

Additionally, PHP error messages can speed up certain exploitation attempts, e.g. the extraction of data via an SQL injection or the process of finding the right directory for local file inclusion exploits.

Remediation
Required Skills for Successful Exploitation
Actions To Take

There are several ways to disable display_errors. It can be done using ini_set(), an .htaccess file, or a user.ini file. However, it is advised to disable this setting globally on a production system, preferably using the main php.ini configuration file, by adding the following line, or modifying an existing display_errors directive to have the value "Off".

display_errors = Off

Classifications
Vulnerability Index

You can search and find all vulnerabilities

Select Vulnerability
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Featured resources

Blog

Strengthening enterprise application security: Invicti acquires Kondukto

Blog

Modern AppSec KPIs: Moving from scan counts to real risk reduction

Blog

Friends don’t let friends shift left: Shift smarter with DAST-first AppSec

Blog

Vibe talking: Dan Murphy on the promises, pitfalls, and insecurities of vibe coding

Blog

What lies ahead for CMS.

Blog

How to integrate CMS with other tools.

Blog

Improve user experience through CMS.

Blog

How CMS can benefit e-commerce.

Blog

Stay updated on CMS trends.

Blog

Tips for improving CMS performance.

Blog

Learn how to secure your CMS.

Blog

Explore the advantages of CMS.

Blog

A comprehensive guide to CMS.

Build your resistance to threats. And save hundreds of hours each month.