Exploit database

GH-7feacea856188eafd49a6762828c436f

chocapikk/cve-2023-35885

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-35885

4 sources

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

Repository files5
chocapikk/cve-2023-35885Revision 78ece7c3f53e

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

src/System/CommandExecutor.php

PHP · 1,253 bytes
<?php
 namespace App\System; class CommandExecutor { public function execute(Command $command, $timeout = 30) : void { try { goto C2180; cc277: $process->run(); goto d6b74; eeb55: A8852: goto A7967; C0588: $process = Process::fromShellCommandline($command->getCommand(), "\57\x74\155\160\x2f"); goto ff07d; ff07d: $process->setCommand($command); goto E2f28; Dd82b: throw new \RuntimeException($process->getErrorOutput()); goto eeb55; C2180: $runInBackground = $command->runInBackground(); goto C0588; d9681: bebec: goto C6405; E2f28: if (true === $runInBackground) { goto c00d9; } goto Bfbde; Ffca7: c00d9: goto de79a; Bfbde: $process->setTimeout($timeout); goto cc277; d6b74: if (!(false === $process->isSuccessful())) { goto A8852; } goto Dd82b; de79a: $process->start(); goto d9681; A7967: goto bebec; goto Ffca7; C6405: } catch (\Exception $e) { goto aef82; Db59c: $errorMessage = sprintf("\x43\157\x6d\155\x61\156\144\40\42\x25\x73\x20\x3a\x20\x25\x73\42\40\x66\141\x69\x6c\x65\144\x2c\40\x65\162\x72\x6f\162\40\x6d\x65\163\x73\141\x67\145\72\40\45\x73", $command->getName(), $fullCommand, $e->getMessage()); goto e4c5e; aef82: $fullCommand = $command->getCommand(); goto Db59c; e4c5e: throw new \Exception($errorMessage); goto Acf9b; Acf9b: } } }