PHP allow_url_fopen Is Enabled

Severity: Low
Summary#

Invicti detected that the allow_url_fopen directive is enabled.

Impact#

When allow_url_fopen is enabled, some of PHP's functions that usually expect file paths can be used to receive files over the network instead of the local file system. An attacker can abuse this behavior in order to make arbitrary server-side requests. Abusing different protocol handlers can lead to a variety of problems most notably to the server-side request forgery.

Actions To Take#

If you don't rely on allow_url_fopen for legitimate uses in your application, it is strongly advised to disable it in your php.ini file. In order to do this, please add or modify the allow_url_fopen directive accordingly.

allow_url_fopen = off
Classifications#
Invicti

Dead accurate, fast & easy-to-use Web Application Security Scanner

Get a demo