PHP open_basedir is NOT set

Description

This vulnerability was detected using the information from phpinfo() page.
If “open_basedir” is not set, there is no limit for the files to be opened by PHP to the specified directory tree, this means that you might be exposed to Remote File Inclusion.

Remote File Inclusion (RFI) vulnerability is a vulnerability in uncontrolled web applications that rely on script runtime. With the help of the vulnerability, an attacker could inject code into a Web server and run it remotely.

Recommendation

Set the “open_basedir” configuration directive from php.ini as follows :
open_basedir = my_app_directory

References

https://kayran.io/blog/vulnerabilities/remote-file-inclusion-rfi/

https://en.wikipedia.org/wiki/File_inclusion_vulnerability

< Return to all Vulnerabilities

HAR Files

In this article, I’ll talk and explain about HAR Files, so if you don’t know what they are, or, what do we use them for,

Read More »

The Cloud

I’m pretty sure there isn’t a single adult in the world who hasn’t at least heard of The Cloud. Explaining “The Cloud” in 2022 may

Read More »

SQLI to RCE

How to preform SQLI TO RCE? One of the most interesting and important things about any site is the database. So, it’s important to protect

Read More »