Skip to content

Commit cb4ddc3

Browse files
author
Marius Burkard
committed
- added blacklisted paths
1 parent d60ccc1 commit cb4ddc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/lib/classes/system.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function has_service($userid, $service) {
6868
}
6969

7070
public function is_blacklisted_web_path($path) {
71-
$blacklist = array('bin', 'cgi-bin', 'dev', 'etc', 'home', 'lib', 'lib64', 'log', 'ssl', 'usr', 'var');
71+
$blacklist = array('bin', 'cgi-bin', 'dev', 'etc', 'home', 'lib', 'lib64', 'log', 'ssl', 'usr', 'var', 'proc', 'net', 'sys', 'srv', 'sbin', 'run');
7272

7373
$path = ltrim($path, '/');
7474
$parts = explode('/', $path);

server/lib/classes/system.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ function set_immutable($path, $enable = true, $recursive = false) {
17881788
}
17891789

17901790
public function is_blacklisted_web_path($path) {
1791-
$blacklist = array('bin', 'cgi-bin', 'dev', 'etc', 'home', 'lib', 'lib64', 'log', 'ssl', 'usr', 'var');
1791+
$blacklist = array('bin', 'cgi-bin', 'dev', 'etc', 'home', 'lib', 'lib64', 'log', 'ssl', 'usr', 'var', 'proc', 'net', 'sys', 'srv', 'sbin', 'run');
17921792

17931793
$path = ltrim($path, '/');
17941794
$parts = explode('/', $path);

0 commit comments

Comments
 (0)