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 files45
chocapikk/cve-2023-35885Revision 78ece7c3f53e

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

src/System/Command/BsdTarExtractCommand.php

PHP · 1,215 bytes
<?php
 namespace App\System\Command; use App\System\Command; class BsdTarExtractCommand extends Command { private ?string $sourceFile = null; private ?string $destinationFile = null; public function getCommand() : string { goto F51f4; f471c: E67cc: goto c4a92; b284d: $sourceFile = $this->getSourceFile(); goto f579f; c4a92: return $this->command; goto E8c9a; c8070: $this->command = sprintf("\57\165\x73\x72\57\x62\x69\x6e\57\x73\x75\144\157\x20\57\x75\x73\x72\57\x62\x69\156\57\142\163\144\x74\141\x72\x20\x2d\55\x67\x75\156\172\x69\x70\40\x2d\170\x66\40\45\x73\x20\x2d\x43\40\x25\163", escapeshellarg($sourceFile), escapeshellarg($destinationFile)); goto f471c; F51f4: if ($this->command) { goto E67cc; } goto b284d; f579f: $destinationFile = $this->getDestinationFile(); goto c8070; E8c9a: } public function isSuccessful() : bool { return true; } public function setSourceFile(string $sourceFile) : void { $this->sourceFile = $sourceFile; } public function getSourceFile() : ?string { return $this->sourceFile; } public function setDestinationFile(string $destinationFile) : void { $this->destinationFile = $destinationFile; } public function getDestinationFile() : ?string { return $this->destinationFile; } }