Code

Added escapeshellargs for security reasons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 12:47:21 +0000 (12:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 12:47:21 +0000 (12:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19478 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/password/class_password.inc

index b6bf8becfdab27508f01db6d62f09e14d86af945..cb3b43fcd3bffb6c1deb11d0a8ec06e577f71156 100644 (file)
@@ -111,7 +111,8 @@ class password extends plugin
 
       /* Call external password quality hook ?*/
       $check_hook   = $this->config->get_cfg_value("passwordHook") != "";
-      $hook         = $this->config->get_cfg_value("passwordHook")." ".$ui->username." ".$current_password." ".$new_password;
+      $hook         = $this->config->get_cfg_value("passwordHook")." ".
+          escapeshellarg($ui->username)." ".escapeshellarg($current_password)." ".escapeshellarg($new_password);
       if($check_hook){
         exec($hook,$resarr);
         $check_hook_output = "";