Skip to content

Commit

Permalink
Fixed issue: Vulnerability in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 21, 2014
1 parent ceecfbb commit 5e6529c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/InstallerController.php
Expand Up @@ -631,6 +631,10 @@ private function stepOptionalConfiguration()
if ($this->connection->getActive() == true) {
$sPasswordHash=hash('sha256', $sDefaultAdminPassword);
try {

if (User::model()->count()>0){
die();
}
// Save user
$user=new User;
$user->users_name=$sDefaultAdminUserName;
Expand Down

0 comments on commit 5e6529c

Please sign in to comment.