Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahogony
php
Commits
159c56ae
Commit
159c56ae
authored
Jun 08, 2019
by
mh
Browse files
add more allowed include and require
parent
58d26857
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/snuffleupagus/global.pp
View file @
159c56ae
...
...
@@ -13,9 +13,13 @@ sp.disable_function.function("putenv").param("setting").value_r("LD_").drop();',
sp.disable_function.function("require_once").value_r("\.php$").allow();
# wordpress requires .svg
sp.disable_function.function("require_once").value_r("\.svg$").allow();
# drupal requires .inc
sp.disable_function.function("require_once").value_r("\.inc$").allow();
sp.disable_function.function("include_once").value_r("\.php$").allow();
sp.disable_function.function("require").value_r("\.php$").allow();
sp.disable_function.function("include").value_r("\.php$").allow();
sp.disable_function.function("require").value_r("\.inc$").allow();
sp.disable_function.function("include").value_r("\.inc$").allow();
sp.disable_function.function("require_once").drop();
sp.disable_function.function("include_once").drop();'
,
'040-system'
=>
'# Prevent `system`-related injections
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment