Skip to content

Commit 393ca8c

Browse files
committed
Fixed: FS#2325 - httpd log directory permissions allow symlink attacks.
1 parent 9454805 commit 393ca8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,8 @@ function update($event_name,$data) {
656656
//* Chown all default directories
657657
$this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root']));
658658
$this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/cgi-bin'));
659-
$this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/log'));
659+
// $this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/log'));
660+
$this->_exec('chown root:'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/log'));
660661
$this->_exec('chown root:root '.escapeshellcmd($data['new']['document_root'].'/ssl'));
661662
$this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/tmp'));
662663
$this->_exec('chown -R '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root'].'/web'));

0 commit comments

Comments
 (0)