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

https://cwe.mitre.org/data/definitions/16.html

https://cwe.mitre.org/data/definitions/664.html

< Return to all Vulnerabilities

Blue Team

We’ve talked about The Red Team before, but what about The Blue Team? How is this group different from the red one? Why would we

Read More »

Bug Bounties

As pirates, we all love plundering, we all love raiding, but mostly, we all love bounties, especially Bug Bounties. Let’s talk about it. Bug Bounties

Read More »

Servers 101

Let’s have a “quick” Servers 101 Course. Courtesy of Kayran! If you’ve been on the internet for over an hour, you probably already heard of

Read More »