Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Vendor directory security check.

Vendor directory security check: Difference between revisions

From MoodleDocs
(Initial version of the page, with the info simply copied from Moodle)
 
m (Improve formatting of the directory name)
Line 3: Line 3:
'''The vendor directory should not be present on public sites.'''
'''The vendor directory should not be present on public sites.'''


The vendor directory inside the Moodle dirroot contains various third-party libraries and their dependencies, typically installed by the PHP Composer. It may be needed for local development, such as for installing the PHPUnit framework. But it can also contain potentially dangerous code exposing your site to remote attacks.
The directory <tt>vendor</tt> inside the Moodle dirroot contains various third-party libraries and their dependencies, typically installed by the PHP Composer. It may be needed for local development, such as for installing the PHPUnit framework. But it can also contain potentially dangerous code exposing your site to remote attacks.


It is strongly recommended to remove the directory if the site is available via a public URL, or at least prohibit web access to it.
It is strongly recommended to remove the directory if the site is available via a public URL, or at least prohibit web access to it.

Revision as of 07:37, 7 September 2017

Vendor directory security check

The vendor directory should not be present on public sites.

The directory vendor inside the Moodle dirroot contains various third-party libraries and their dependencies, typically installed by the PHP Composer. It may be needed for local development, such as for installing the PHPUnit framework. But it can also contain potentially dangerous code exposing your site to remote attacks.

It is strongly recommended to remove the directory if the site is available via a public URL, or at least prohibit web access to it.