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 files76
datackmy/fallingskies-cve-2023-35885Revision cb3449d9acca
Next files →

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

src/Form/SitePhpSettingsType.php

PHP · 9,911 bytes
<?php
 namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvent; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; class SitePhpSettingsType extends AbstractType { const PHP_DIRECTORY = "\57\x65\x74\143\57\160\x68\x70\57"; public function buildForm(FormBuilderInterface $builder, array $options) : void { goto Bbabd; Bcc73: $builder->add("\x6d\x61\170\x49\x6e\160\165\164\124\151\x6d\145", ChoiceType::class, ["\162\145\x71\x75\x69\x72\x65\144" => true, "\141\x74\164\x72" => ["\143\x6c\x61\163\163" => "\x66\x6f\x72\x6d\x2d\163\x65\x6c\x65\143\164\40\x66\x6f\x72\x6d\55\x73\x65\154\145\x63\164\55\154\147"], "\x6c\141\142\145\154" => "\155\141\170\x5f\151\156\160\x75\x74\137\164\151\155\x65", "\x63\150\x6f\x69\143\145\x73" => $maxInputTimeChoices]); goto db3d2; a43db: $postMaxSizeChoices = ["\x32\x20\115\102" => "\x32\115", "\64\40\x4d\x42" => "\x34\x4d", "\x38\40\x4d\102" => "\x38\115", "\61\x36\x20\115\102" => "\x31\x36\115", "\x33\62\40\x4d\x42" => "\63\x32\115", "\x36\x34\40\x4d\102" => "\x36\64\x4d", "\61\62\70\40\115\x42" => "\61\62\70\x4d", "\62\x35\66\x20\x4d\x42" => "\x32\65\x36\115", "\x35\61\62\40\x4d\x42" => "\x35\x31\x32\115", "\67\x36\x38\40\115\102" => "\x37\x36\70\x4d", "\x31\40\107\102" => "\x31\107", "\x32\x20\x47\102" => "\x32\107", "\x33\x20\107\102" => "\63\107", "\x34\40\107\x42" => "\x34\107", "\x35\40\x47\102" => "\65\107"]; goto d0d4a; a9dc9: $builder->add("\141\x64\x64\x69\164\x69\157\156\x61\x6c\x43\x6f\156\146\x69\x67\165\162\x61\x74\151\x6f\x6e", TextareaType::class, ["\x72\145\161\x75\x69\162\x65\144" => false, "\141\x74\x74\162" => ["\x63\154\141\x73\163" => "\x66\x6f\162\x6d\55\x63\x6f\156\164\162\x6f\154\40\146\x6f\162\155\55\x63\157\156\164\x72\x6f\154\x2d\x6c\x67", "\x72\157\167\x73" => 5], "\x6c\x61\x62\145\154" => "\101\x64\x64\x69\x74\151\x6f\x6e\141\x6c\40\103\157\156\146\x69\147\x75\162\141\164\151\157\x6e\40\104\151\x72\145\x63\164\151\166\145\163"]); goto fb6bc; fcb01: $builder->add("\x6d\x61\x78\x45\170\x65\x63\165\x74\151\157\156\124\x69\155\x65", ChoiceType::class, ["\x72\145\161\165\x69\x72\x65\x64" => true, "\x61\x74\x74\x72" => ["\143\154\141\x73\163" => "\146\157\x72\x6d\x2d\x73\145\x6c\x65\143\164\40\x66\157\162\x6d\55\163\145\154\x65\143\x74\55\154\147"], "\x6c\141\142\145\154" => "\x6d\x61\x78\137\145\170\x65\143\x75\164\151\x6f\156\x5f\164\x69\155\x65", "\143\x68\157\151\143\145\x73" => $maxExecutionTimeChoices]); goto a1bc9; E22d8: $maxExecutionTimeChoices = ["\61\65\163" => "\61\x35", "\x33\x30\163" => "\x33\60", "\x31\x6d" => "\x36\60", "\x32\155" => "\x31\62\x30", "\x33\x6d" => "\61\70\x30", "\65\x6d" => "\63\x30\x30", "\61\60\x6d" => "\x36\x30\60", "\x31\x35\x6d" => "\71\x30\60", "\x33\x30\x6d" => "\x31\x38\x30\60", "\x31\150" => "\63\x36\60\x30"]; goto fcb01; Fc2b5: $builder->add("\x6d\x65\155\x6f\162\x79\114\x69\155\151\x74", ChoiceType::class, ["\x72\x65\x71\x75\x69\162\145\x64" => true, "\x61\x74\x74\162" => ["\143\x6c\141\163\163" => "\146\157\x72\155\55\163\145\x6c\145\x63\164\40\x66\x6f\x72\155\x2d\x73\145\154\145\143\x74\x2d\x6c\147"], "\x6c\141\x62\x65\x6c" => "\x6d\x65\x6d\157\x72\x79\x5f\154\x69\155\x69\164", "\143\x68\157\x69\143\x65\x73" => $memoryLimitChoices]); goto E22d8; E5339: $builder->add("\x70\150\x70\x56\x65\x72\163\x69\x6f\x6e", ChoiceType::class, ["\x72\145\x71\x75\x69\162\145\144" => true, "\141\164\x74\x72" => ["\x63\x6c\x61\163\x73" => "\x66\157\162\x6d\55\163\145\x6c\145\143\x74\40\146\157\162\155\55\163\x65\154\145\143\x74\x2d\154\x67"], "\154\141\x62\x65\154" => "\x50\x48\x50\x20\x56\x65\x72\x73\151\157\x6e", "\x63\x68\x6f\x69\x63\x65\163" => $phpVersionChoices]); goto Da975; a1bc9: $maxInputTimeChoices = ["\61\65\x73" => "\x31\x35", "\x33\x30\163" => "\63\60", "\61\x6d" => "\x36\60", "\62\x6d" => "\x31\x32\60", "\63\x6d" => "\61\x38\60", "\65\155" => "\63\60\60", "\x31\x30\x6d" => "\66\60\60", "\61\65\155" => "\x39\60\x30", "\x33\60\155" => "\61\x38\60\60", "\61\150" => "\63\66\60\x30"]; goto Bcc73; d328a: $uploadMaxFilesizeChoices = ["\x32\x20\115\x42" => "\62\115", "\x34\40\115\102" => "\64\115", "\70\x20\115\102" => "\70\x4d", "\x31\x36\x20\115\x42" => "\61\66\115", "\x33\62\x20\x4d\x42" => "\x33\x32\115", "\66\64\40\x4d\x42" => "\66\64\x4d", "\x31\62\70\40\x4d\102" => "\x31\x32\x38\115", "\x32\65\66\40\x4d\x42" => "\x32\65\66\115", "\65\61\62\x20\x4d\102" => "\65\x31\62\x4d", "\67\66\x38\x20\115\x42" => "\x37\66\x38\115", "\61\x20\x47\102" => "\61\107", "\x32\40\107\x42" => "\62\x47", "\x33\x20\x47\102" => "\63\107", "\x34\x20\x47\x42" => "\64\107", "\65\40\x47\x42" => "\x35\107"]; goto A3b14; Bbabd: $phpVersionChoices = $this->getPhpVersionChoices(); goto E5339; A3b14: $builder->add("\x75\x70\x6c\157\x61\144\115\x61\170\106\x69\154\145\163\151\172\145", ChoiceType::class, ["\x72\x65\x71\x75\151\x72\145\x64" => true, "\x61\x74\164\162" => ["\x63\154\x61\163\x73" => "\x66\157\162\x6d\55\x73\x65\x6c\145\143\x74\40\x66\x6f\162\x6d\x2d\163\145\x6c\145\143\x74\x2d\154\147"], "\154\x61\142\x65\x6c" => "\165\160\x6c\157\141\144\x5f\x6d\141\170\137\146\x69\x6c\145\x73\151\x7a\145", "\143\x68\x6f\151\x63\x65\x73" => $uploadMaxFilesizeChoices]); goto a9dc9; db3d2: $maxInputVarsChoices = ["\x31\x30\60\60" => 1000, "\x32\x30\x30\60" => 2000, "\65\60\60\x30" => 5000, "\x31\x30\x30\60\60" => 10000, "\62\x30\60\60\60" => 20000, "\65\60\60\60\60" => 50000, "\61\x30\x30\x30\x30\60" => 100000]; goto Cf252; Cf252: $builder->add("\x6d\141\x78\111\x6e\160\x75\164\x56\x61\162\x73", ChoiceType::class, ["\162\x65\161\165\151\162\145\144" => true, "\141\164\164\x72" => ["\x63\154\141\x73\x73" => "\146\x6f\162\155\x2d\x73\x65\x6c\x65\143\x74\x20\146\157\x72\x6d\x2d\163\145\x6c\145\143\164\55\154\147"], "\154\141\142\145\x6c" => "\x6d\x61\170\x5f\x69\156\x70\x75\164\x5f\166\141\162\163", "\143\150\x6f\x69\x63\145\x73" => $maxInputVarsChoices]); goto a43db; Da975: $memoryLimitChoices = ["\66\64\40\115\x42" => "\66\x34\115", "\61\62\70\x20\115\102" => "\61\62\70\x4d", "\62\x35\x36\40\x4d\x42" => "\x32\x35\x36\x4d", "\x35\61\x32\40\115\x42" => "\x35\x31\x32\x4d", "\67\x36\70\x20\x4d\x42" => "\x37\x36\70\115", "\x31\40\x47\102" => "\x31\x47", "\x32\x20\x47\x42" => "\x32\x47", "\63\x20\x47\102" => "\63\x47", "\64\40\x47\x42" => "\64\107", "\x35\40\x47\x42" => "\65\x47"]; goto Fc2b5; fb6bc: $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { goto Ef70a; e99d0: if (!count($additionalConfiguration)) { goto F19ed; } goto eb482; D5dd0: $event->setData($data); goto d6ae4; d5756: if (!(true === isset($data["\141\144\x64\x69\164\151\x6f\156\x61\x6c\x43\157\156\x66\151\147\165\x72\x61\x74\151\x6f\x6e"]) && false === empty($data["\x61\144\x64\151\x74\151\x6f\x6e\x61\x6c\x43\157\x6e\146\x69\x67\165\x72\x61\164\151\157\x6e"]))) { goto b013b; } goto E0949; Cf582: $data["\141\x64\x64\x69\164\151\x6f\156\141\154\103\157\156\x66\151\x67\165\x72\141\x74\151\157\x6e"] = implode(PHP_EOL, $additionalConfigurationSettings); goto F450b; Ef70a: $data = $event->getData(); goto d5756; cf21b: F19ed: goto f1a40; d524c: a32bf: goto cf21b; E0949: $additionalConfiguration = trim($data["\x61\x64\x64\x69\164\151\x6f\156\x61\154\103\x6f\x6e\146\151\x67\x75\x72\x61\x74\151\x6f\x6e"]); goto Cd50a; D61e7: b013b: goto D5dd0; f1a40: if (!(false === empty($additionalConfigurationSettings))) { goto ee4c9; } goto Cf582; F450b: ee4c9: goto D61e7; eb482: foreach ($additionalConfiguration as $value) { goto a6baa; E2315: E45c7: goto eb506; a6baa: $value = trim($value); goto b35d7; acdd6: $additionalConfigurationSettings[] = $value; goto acb67; ebd23: if (!("\73" != substr($value, -1))) { goto bab3b; } goto f7298; ad962: $value = preg_replace("\x2f\x5c\x73\x2b\57", '', $value); goto ebd23; b35d7: $value = str_replace(["\42"], ["\47"], $value); goto B96b9; B96b9: if (!(false === empty($value))) { goto B8230; } goto ad962; f7298: $value .= "\x3b"; goto eae0a; eae0a: bab3b: goto acdd6; acb67: B8230: goto E2315; eb506: } goto d524c; Cd50a: $additionalConfiguration = explode(PHP_EOL, $additionalConfiguration); goto Ce9f1; Ce9f1: $additionalConfigurationSettings = []; goto e99d0; d6ae4: }); goto de63c; d0d4a: $builder->add("\160\x6f\x73\x74\x4d\141\170\123\x69\172\x65", ChoiceType::class, ["\162\x65\161\x75\x69\162\x65\144" => true, "\141\164\x74\162" => ["\x63\x6c\141\163\x73" => "\x66\157\162\x6d\55\163\145\x6c\x65\143\x74\x20\146\x6f\162\x6d\55\163\x65\154\145\143\164\55\154\x67"], "\154\141\x62\x65\154" => "\x70\x6f\x73\x74\137\x6d\141\x78\137\x73\x69\x7a\145", "\x63\150\157\151\143\145\163" => $postMaxSizeChoices]); goto d328a; de63c: } public function setDefaultOptions(OptionsResolverInterface $resolver) : void { $resolver->setDefaults(["\144\141\x74\141\x5f\x63\x6c\141\x73\x73" => "\101\160\x70\x5c\105\x6e\164\151\164\171\x5c\x50\x68\160\x53\x65\x74\164\x69\156\x67\x73"]); } public function getName() : string { return "\143\154\x70\x5f\x73\x69\164\x65\137\160\x68\x70\x5f\163\145\x74\x74\x69\x6e\147\x73"; } private function getPhpVersionChoices() : array { goto F7f3a; a6e04: Debb3: goto c073b; F7f3a: $phpVersionChoices = []; goto B06ee; B06ee: foreach (new \DirectoryIterator(self::PHP_DIRECTORY) as $fileInfo) { goto cf809; B76e0: b3a51: goto b34a3; fa0bb: Dd461: goto B76e0; e484b: if (!(true === is_float($phpVersion + 0))) { goto Dd461; } goto aafbd; aafbd: $phpVersionChoices[sprintf("\120\110\120\40\x25\x73", $phpVersion)] = $phpVersion; goto fa0bb; Fb02d: $phpVersion = $fileInfo->getBasename(); goto e484b; cf809: if (!(false === $fileInfo->isDot())) { goto b3a51; } goto Fb02d; b34a3: E86a3: goto Fdd21; Fdd21: } goto a6e04; a8492: return $phpVersionChoices; goto Ed359; c073b: arsort($phpVersionChoices); goto a8492; Ed359: } }