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/WordPressConfigCreateCommand.php

PHP · 2,843 bytes
<?php
 namespace App\System\Command; use App\System\Command; class WordPressConfigCreateCommand extends Command { private ?string $rootDirectory = null; private ?string $databaseHost = null; private ?string $databaseName = null; private ?string $databaseUserName = null; private ?string $databaseUserPassword = null; private ?string $locale = null; public function getCommand() : string { goto C5eb7; C5eb7: if ($this->command) { goto e71b4; } goto e36e3; Bd848: $databaseName = $this->getDatabaseName(); goto C55fb; Afe13: return $this->command; goto D88f4; e36e3: $rootDirectory = $this->getRootDirectory(); goto Da48e; d7576: $locale = $this->getLocale(); goto ce495; cc646: $databaseUserPassword = $this->getDatabaseUserPassword(); goto d7576; ce495: $this->command = sprintf("\x2f\165\163\162\x2f\x62\x69\x6e\x2f\163\x75\x64\x6f\40\x2f\142\151\156\x2f\x62\141\163\150\40\x2d\x63\x20\x22\x63\x64\x20\x25\x73\x20\46\46\40\57\165\163\162\57\x62\x69\x6e\57\167\160\40\x63\157\156\146\x69\x67\40\x63\x72\145\x61\164\145\x20\55\55\x64\142\150\157\163\164\75\x25\x73\x20\55\x2d\x64\x62\156\141\155\x65\x3d\45\x73\40\55\x2d\x64\142\165\x73\145\162\x3d\x25\x73\40\55\x2d\x64\142\x70\141\x73\163\75\45\163\40\x2d\55\x6c\x6f\143\141\154\145\75\45\x73\x20\x2d\55\x61\x6c\x6c\x6f\167\55\x72\157\x6f\x74\42", escapeshellarg($rootDirectory), escapeshellarg($databaseHost), escapeshellarg($databaseName), escapeshellarg($databaseUserName), escapeshellarg($databaseUserPassword), escapeshellarg($locale)); goto Cce70; Cce70: e71b4: goto Afe13; C55fb: $databaseUserName = $this->getDatabaseUserName(); goto cc646; Da48e: $databaseHost = $this->getDatabaseHost(); goto Bd848; D88f4: } public function isSuccessful() : bool { return true; } public function setRootDirectory(string $rootDirectory) : void { $this->rootDirectory = $rootDirectory; } public function getRootDirectory() : ?string { return $this->rootDirectory; } public function getDatabaseHost() : ?string { return $this->databaseHost; } public function setDatabaseHost(?string $databaseHost) : void { $this->databaseHost = $databaseHost; } public function getDatabaseName() : ?string { return $this->databaseName; } public function setDatabaseName(?string $databaseName) : void { $this->databaseName = $databaseName; } public function getDatabaseUserName() : ?string { return $this->databaseUserName; } public function setDatabaseUserName(?string $databaseUserName) : void { $this->databaseUserName = $databaseUserName; } public function getDatabaseUserPassword() : ?string { return $this->databaseUserPassword; } public function setDatabaseUserPassword(?string $databaseUserPassword) : void { $this->databaseUserPassword = $databaseUserPassword; } public function getLocale() : ?string { return $this->locale; } public function setLocale(?string $locale) : void { $this->locale = $locale; } }