mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-82231' of https://github.com/paulholden/moodle
This commit is contained in:
commit
ea4336279b
@ -83,6 +83,7 @@ class publicpaths extends check {
|
||||
'.git/HEAD',
|
||||
'.github/FUNDING.yml',
|
||||
'.stylelintrc',
|
||||
'.upgradenotes/',
|
||||
],
|
||||
],
|
||||
[
|
||||
@ -140,11 +141,15 @@ class publicpaths extends check {
|
||||
],
|
||||
],
|
||||
[
|
||||
'pattern' => '/upgrade.txt',
|
||||
'pattern' => '\/(upgrade\.txt|UPGRADING\.md|UPGRADING\-CURRENT\.md)',
|
||||
'404' => [
|
||||
'auth/manual/upgrade.txt',
|
||||
'lib/upgrade.txt',
|
||||
'UPGRADING.md',
|
||||
'UPGRADING-CURRENT.md',
|
||||
'reportbuilder/UPGRADING.md',
|
||||
],
|
||||
'summary' => get_string('check_upgradefile_info', 'report_security'),
|
||||
],
|
||||
[
|
||||
'pattern' => 'phpunit.xml',
|
||||
|
@ -131,6 +131,7 @@ $string['check_unsecuredataroot_error'] = 'Your dataroot directory <code>{$a}</c
|
||||
$string['check_unsecuredataroot_name'] = 'Insecure dataroot';
|
||||
$string['check_unsecuredataroot_ok'] = 'Dataroot directory must not be accessible via the web.';
|
||||
$string['check_unsecuredataroot_warning'] = 'Your dataroot directory <code>{$a}</code> is in the wrong location and might be exposed to the web.';
|
||||
$string['check_upgradefile_info'] = 'Upgrade note files should not be public';
|
||||
$string['check_vendordir_details'] = '<p>The directory <code>{$a->path}</code> contains various third-party libraries and their dependencies, typically installed by the PHP Composer. These libraries may be needed for local Moodle development, such as for installing the PHPUnit framework. They are not needed to run a Moodle site in production and they can contain potentially dangerous code exposing your site to remote attacks.</p><p>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 in your webserver configuration.</p>';
|
||||
$string['check_vendordir_info'] = 'The vendor directory should not be present on public sites.';
|
||||
$string['check_vendordir_name'] = 'Vendor directory';
|
||||
|
Loading…
x
Reference in New Issue
Block a user