Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
393ca8c7
Commit
393ca8c7
authored
Jul 23, 2012
by
tbrehm
Browse files
Fixed: FS#2325 - httpd log directory permissions allow symlink attacks.
parent
9454805b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
393ca8c7
...
...
@@ -656,7 +656,8 @@ class apache2_plugin {
//* Chown all default directories
$this
->
_exec
(
'chown '
.
$username
.
':'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]));
$this
->
_exec
(
'chown '
.
$username
.
':'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/cgi-bin'
));
$this
->
_exec
(
'chown '
.
$username
.
':'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/log'
));
// $this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/log'));
$this
->
_exec
(
'chown root:'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/log'
));
$this
->
_exec
(
'chown root:root '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
));
$this
->
_exec
(
'chown '
.
$username
.
':'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/tmp'
));
$this
->
_exec
(
'chown -R '
.
$username
.
':'
.
$groupname
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'document_root'
]
.
'/web'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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