Exploit database

GH-25ed919a3c63ff26fc49a3fe47dc7565

datackmy/fallingskies-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.

Repository files43
datackmy/fallingskies-cve-2023-35885Revision cb3449d9acca

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

src/Command/UserResetPasswordCommand.php

PHP · 2,675 bytes
<?php
 namespace App\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use App\Command\Command as BaseCommand; use App\Entity\Manager\UserManager as UserEntityManager; class UserResetPasswordCommand extends BaseCommand { private UserEntityManager $userEntityManager; public function __construct(UserEntityManager $userEntityManager) { $this->userEntityManager = $userEntityManager; parent::__construct(); } protected function configure() : void { goto e81ac; F47c5: $this->addOption("\165\x73\145\x72\116\141\155\x65", null, InputOption::VALUE_REQUIRED); goto fcaaf; e81ac: $this->setName("\165\163\145\x72\x3a\x72\x65\163\145\164\x3a\x70\141\163\163\x77\x6f\162\144"); goto F4551; F4551: $this->setDescription("\x63\154\160\143\164\x6c\40\165\163\145\x72\x3a\162\145\x73\x65\164\x3a\x70\x61\163\x73\167\157\x72\144\40\x2d\x2d\x75\x73\145\x72\116\141\x6d\x65\75\x6a\157\150\x6e\x2e\144\x6f\145\x20\x2d\55\160\x61\163\163\x77\x6f\x72\x64\75\x27\41\x6e\x65\x77\x50\x61\x73\163\x77\x6f\x72\144\41\47"); goto F47c5; fcaaf: $this->addOption("\160\x61\163\x73\x77\157\x72\144", null, InputOption::VALUE_REQUIRED); goto ded47; ded47: } protected function execute(InputInterface $input, OutputInterface $output) : int { try { goto B3765; Af3a8: e06a6: goto acd63; acd63: $user->setPlainPassword($password); goto Ef693; f8f03: goto E23b4; goto Af3a8; Ef693: $this->userEntityManager->updateUser($user, true, true); goto c09fb; B3765: $this->validateInput($input); goto fc773; B84bf: $user = $this->userEntityManager->findOneByUserName($userName); goto d76e6; fc773: $userName = trim($input->getOption("\x75\163\x65\x72\x4e\141\155\145")); goto a9380; Ac257: E23b4: goto d173d; d76e6: if (false === is_null($user)) { goto e06a6; } goto Fd505; Fd505: throw new \Exception(sprintf("\125\163\145\162\40\42\x25\x73\x22\40\144\157\x65\163\x20\156\x6f\164\x20\x65\x78\151\163\164\56", $userName)); goto f8f03; d173d: return BaseCommand::SUCCESS; goto F27b3; a9380: $password = trim($input->getOption("\160\x61\x73\x73\x77\x6f\x72\x64")); goto B84bf; c09fb: $output->writeln(sprintf("\74\151\156\x66\157\76\x50\x61\163\163\x77\x6f\x72\x64\x20\146\x6f\x72\x20\42\x25\x73\x22\x20\150\141\163\40\142\145\x65\156\40\162\145\163\x65\164\56\74\57\x69\x6e\x66\157\76", $userName)); goto Ac257; F27b3: } catch (\Exception $e) { goto Dbaef; be6b7: return BaseCommand::FAILURE; goto b2fcb; D7db1: $output->writeln(sprintf("\x3c\145\x72\162\x6f\162\x3e\x25\x73\x3c\x2f\x65\x72\162\157\162\76", $errorMessage)); goto be6b7; Dbaef: $errorMessage = $e->getMessage(); goto D7db1; b2fcb: } } }