Exploit databaseDownload repository ZIP
GH-7feacea856188eafd49a6762828c436f
chocapikk/cve-2023-35885
Sources for CVE-2023-35885
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files76
chocapikk/cve-2023-35885Revision 78ece7c3f53e
- ↑..Parent directory
- AdminAwsAccessKeysType.php
- AdminAwsImageType.php
- AdminAwsImagesSettingsType.php
- AdminBasicAuthType.php
- AdminCustomDomainSettingsType.php
- AdminDatabaseServerEditType.php
- AdminDatabaseServerType.php
- AdminDoAccessTokenType.php
- AdminDoSnapshotType.php
- AdminDoSnapshotsSettingsType.php
- AdminFirewallRuleAddType.php
- AdminFirewallRuleEditType.php
- AdminGceServiceAccountKeysType.php
- AdminGceSnapshotType.php
- AdminGceSnapshotsSettingsType.php
- AdminHetznerApiTokenType.php
- AdminHetznerSnapshotType.php
- AdminHetznerSnapshotsSettingsType.php
- AdminInstanceSettingsType.php
- AdminProftpdSettingsType.php
- AdminRemoteBackupAmazonS3EditType.php
- AdminRemoteBackupAmazonS3Type.php
- AdminRemoteBackupCustomRcloneEditType.php
- AdminRemoteBackupCustomRcloneType.php
- AdminRemoteBackupDigitalOceanSpacesEditType.php
- AdminRemoteBackupDigitalOceanSpacesType.php
- AdminRemoteBackupDropboxEditType.php
- AdminRemoteBackupDropboxType.php
- AdminRemoteBackupGoogleDriveEditType.php
- AdminRemoteBackupGoogleDriveType.php
- AdminRemoteBackupSftpEditType.php
- AdminRemoteBackupSftpType.php
- AdminRemoteBackupStorageProviderType.php
- AdminRemoteBackupWasabiEditType.php
- AdminRemoteBackupWasabiType.php
- AdminUserEditType.php
- AdminUserType.php
- AdminVultrApiKeyType.php
- AdminVultrSnapshotType.php
- AdminVultrSnapshotsSettingsType.php
- LoginMfaType.php
- SiteBasicAuthType.php
- SiteBlockedBotType.php
- SiteBlockedIPType.php
- SiteCloudflareType.php
- SiteCronJobEditType.php
- SiteCronJobType.php
- SiteDatabaseType.php
- SiteDatabaseUserEditType.php
- SiteDatabaseUserType.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/Form/AdminUserType.php
PHP · 6,870 bytes<?php
namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Doctrine\ORM\EntityManagerInterface; use App\Entity\Manager\SiteManager as SiteEntityManager; use App\Repository\TimezoneRepository as TimezoneEntityRepository; use App\Entity\User as UserEntity; use App\Entity\Timezone as TimezoneEntity; use App\Validator\Constraints\UserSites as UserSitesConstraint; class AdminUserType extends AbstractType { private SiteEntityManager $siteEntityManager; private TimezoneEntityRepository $timezoneEntityRepository; public function __construct(SiteEntityManager $siteEntityManager, EntityManagerInterface $entityManager) { $this->siteEntityManager = $siteEntityManager; $this->timezoneEntityRepository = $entityManager->getRepository(TimezoneEntity::class); } public function buildForm(FormBuilderInterface $builder, array $options) : void { goto D3cd6; c14ce: $builder->add("\x6c\x61\163\164\x4e\x61\x6d\145", TextType::class, ["\x72\x65\161\x75\x69\x72\145\144" => true, "\x61\164\x74\x72" => ["\143\154\x61\x73\163" => "\146\x6f\x72\x6d\x2d\x63\x6f\x6e\164\162\x6f\154\40\x66\x6f\162\x6d\x2d\143\x6f\156\x74\x72\157\154\55\x6c\147"], "\154\141\142\145\x6c" => "\x4c\141\x73\x74\40\x4e\x61\x6d\145"]); goto b34ef; e5683: $builder->add("\x73\164\x61\x74\165\x73", ChoiceType::class, ["\162\145\x71\x75\151\x72\145\x64" => true, "\x61\164\164\162" => ["\143\154\x61\x73\x73" => "\146\x6f\x72\155\x2d\x73\145\154\x65\x63\164\40\x66\x6f\162\155\55\163\145\x6c\145\x63\164\55\154\x67"], "\x6c\141\142\x65\154" => "\x53\164\x61\x74\165\x73", "\x63\x68\x6f\x69\x63\145\163" => $statusChoices]); goto E86c0; a1f77: $builder->add("\162\x6f\154\x65", ChoiceType::class, ["\162\x65\161\x75\151\162\x65\x64" => true, "\141\x74\164\x72" => ["\143\154\141\163\x73" => "\146\157\162\155\55\163\145\154\x65\x63\164\x20\146\157\x72\x6d\x2d\x73\x65\x6c\145\143\164\55\154\147"], "\154\x61\142\145\154" => "\x52\x6f\154\x65", "\x63\150\157\x69\143\x65\163" => $roleChoices]); goto D126a; Ba560: $builder->add("\x66\x69\x72\x73\x74\116\x61\x6d\x65", TextType::class, ["\x72\x65\x71\x75\x69\x72\145\x64" => true, "\141\x74\164\162" => ["\x63\154\x61\x73\x73" => "\x66\x6f\x72\x6d\55\x63\x6f\x6e\x74\162\157\x6c\x20\x66\157\162\x6d\55\x63\x6f\156\164\162\x6f\154\55\154\x67"], "\154\x61\142\x65\x6c" => "\x46\x69\162\x73\164\40\116\x61\155\x65"]); goto c14ce; D3cd6: $userEntity = $options["\x64\141\164\141"]; goto F677e; C1d31: $statusChoices = ["\x41\143\164\151\166\145" => UserEntity::STATUS_ACTIVE, "\x4e\157\x74\40\101\143\164\151\x76\x65" => UserEntity::STATUS_NOT_ACTIVE]; goto e5683; E86c0: $roleChoices = ["\101\x64\155\x69\x6e" => UserEntity::ROLE_ADMIN, "\x55\163\x65\162" => UserEntity::ROLE_USER, "\x53\151\164\145\40\115\x61\x6e\141\x67\x65\x72" => UserEntity::ROLE_SITE_MANAGER]; goto a1f77; C4450: $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use($userEntity) { goto f5577; C4dcd: $data["\x75\163\x65\x72\116\141\155\x65"] = true === isset($data["\x75\163\x65\162\x4e\x61\155\145"]) ? strtolower($data["\165\163\145\x72\x4e\141\155\145"]) : ''; goto b414a; f5577: $data = $event->getData(); goto C4dcd; Cb0fd: $event->setData($data); goto cdd69; b414a: $data["\x66\151\x72\163\164\x4e\141\155\x65"] = true === isset($data["\x66\151\162\x73\x74\x4e\141\x6d\x65"]) ? ucfirst($data["\146\x69\162\163\x74\x4e\141\155\145"]) : ''; goto cc522; cc522: $data["\x6c\x61\x73\164\x4e\141\x6d\145"] = true === isset($data["\x6c\x61\x73\x74\x4e\141\x6d\145"]) ? ucfirst($data["\154\141\x73\164\116\141\x6d\x65"]) : ''; goto Cb0fd; cdd69: }); goto C551a; D126a: $timezoneEntityRepository = $this->timezoneEntityRepository; goto c05f2; Add71: $builder->add("\145\x6d\141\151\x6c", EmailType::class, ["\162\145\x71\x75\151\x72\x65\x64" => true, "\x61\x74\164\162" => ["\x63\154\141\163\x73" => "\x66\157\162\x6d\55\143\157\156\x74\162\x6f\x6c\40\146\157\x72\x6d\x2d\x63\157\156\164\x72\x6f\154\55\x6c\x67"], "\x6c\x61\142\x65\154" => "\105\x2d\115\141\151\154"]); goto Ba560; F677e: $userEntity->setPassword(''); goto B56bd; dcc54: $builder->add("\163\151\164\145\x73", TextType::class, ["\154\141\142\145\154" => "\123\151\x74\x65\163", "\x61\164\x74\162" => ["\x63\154\x61\x73\163" => "\144\x2d\156\x6f\x6e\x65"], "\155\x61\x70\x70\145\x64" => false, "\162\145\161\165\x69\162\145\144" => false, "\x63\x6f\x6e\x73\164\162\141\x69\156\164\163" => [new UserSitesConstraint()]]); goto C4450; B56bd: $builder->add("\x75\x73\145\x72\116\x61\x6d\145", TextType::class, ["\162\145\161\x75\151\162\145\144" => true, "\x61\164\164\162" => ["\x63\154\141\x73\163" => "\146\x6f\x72\155\55\x63\x6f\156\164\x72\x6f\154\x20\x66\157\x72\x6d\x2d\x63\x6f\x6e\x74\162\157\x6c\x2d\x6c\x67"], "\154\141\x62\x65\154" => "\x55\163\x65\x72\40\x4e\141\x6d\145"]); goto Add71; b34ef: $builder->add("\x70\154\x61\151\156\120\141\x73\x73\167\157\x72\144", TextType::class, ["\x72\x65\161\x75\151\162\x65\x64" => true, "\141\x74\164\x72" => ["\x63\154\x61\163\163" => "\x66\157\162\155\x2d\143\157\156\x74\162\x6f\x6c\x20\x66\x6f\162\155\x2d\x63\x6f\x6e\x74\x72\157\154\55\x6c\x67"], "\x6c\x61\x62\145\x6c" => "\120\x61\163\163\167\157\x72\144", "\x65\155\x70\164\x79\137\144\x61\x74\141" => null, "\x63\157\x6e\x73\164\x72\x61\151\156\164\x73" => [new Assert\Length(["\x6d\151\x6e" => UserEntity::PASSWORD_MIN_LENGTH, "\155\x61\x78" => UserEntity::PASSWORD_MAX_LENGTH])]]); goto C1d31; c05f2: $builder->add("\164\151\155\145\x7a\157\x6e\x65", EntityType::class, ["\x72\x65\x71\x75\x69\162\x65\x64" => true, "\141\x74\164\162" => ["\143\x6c\141\x73\x73" => "\x66\157\162\155\x2d\163\145\154\x65\143\164\40\x66\x6f\x72\x6d\x2d\x73\145\154\x65\143\164\55\154\147"], "\x6c\x61\142\145\x6c" => "\124\151\155\x65\172\x6f\156\x65", "\x63\x6c\141\163\x73" => TimezoneEntity::class, "\161\165\x65\x72\x79\137\142\165\x69\154\x64\145\x72" => function ($timezoneEntityRepository) { return $timezoneEntityRepository->createQueryBuilder("\x74")->orderBy("\164\56\x69\144", "\101\x53\103"); }, "\x63\x68\157\151\143\x65\x5f\x6c\141\x62\x65\x6c" => "\x6e\141\155\145"]); goto dcc54; C551a: } public function setDefaultOptions(OptionsResolverInterface $resolver) : void { $resolver->setDefaults(["\144\x61\164\x61\x5f\143\x6c\x61\x73\163" => "\101\160\160\134\105\x6e\x74\151\164\x79\x5c\125\163\145\162"]); } public function getName() : string { return "\143\154\160\137\141\144\155\151\156\137\x75\163\x65\162"; } }