Exploit databaseDownload repository ZIP
GH-25ed919a3c63ff26fc49a3fe47dc7565
datackmy/fallingskies-cve-2023-35885
Sources for CVE-2023-35885
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files50
datackmy/fallingskies-cve-2023-35885Revision cb3449d9acca
- ↑..Parent directory
- AmazonS3Bucket.php
- AmazonS3BucketValidator.php
- AmazonS3Credentials.php
- AmazonS3CredentialsValidator.php
- BasicAuth.php
- BasicAuthValidator.php
- Certificate.php
- CertificateValidator.php
- CheckIfPortIsInUse.php
- CheckIfPortIsInUseValidator.php
- CustomRcloneConfig.php
- CustomRcloneConfigValidator.php
- DatabaseName.php
- DatabaseNameValidator.php
- DatabaseUserName.php
- DatabaseUserNameValidator.php
- DigitalOceanSpacesCredentials.php
- DigitalOceanSpacesCredentialsValidator.php
- DomainName.php
- DomainNameValidator.php
- DropboxAccessCode.php
- DropboxAccessCodeValidator.php
- FtpUserHomeDirectory.php
- FtpUserHomeDirectoryValidator.php
- GoogleDriveCredentials.php
- GoogleDriveCredentialsValidator.php
- Ip.php
- IpValidator.php
- MfaCode.php
- MfaCodeValidator.php
- PhpVersion.php
- PhpVersionValidator.php
- PortRange.php
- PortRangeValidator.php
- PythonVersion.php
- PythonVersionValidator.php
- RemoteBackupExcludes.php
- RemoteBackupExcludesValidator.php
- SftpCredentials.php
- SftpCredentialsValidator.php
- Timezone.php
- TimezoneValidator.php
- UniqueDomainName.php
- UniqueDomainNameValidator.php
- UniqueSystemUser.php
- UniqueSystemUserValidator.php
- UserSites.php
- UserSitesValidator.php
- WasabiCredentials.php
- WasabiCredentialsValidator.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/Validator/Constraints/PortRangeValidator.php
PHP · 1,282 bytes<?php
namespace App\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class PortRangeValidator extends ConstraintValidator
{
public function validate($value, Constraint $constraint): void
{
if (null === $value || '' === $value) {
return;
}
try {
$portRange = trim($value);
$portRange = explode('-', $portRange);
if (count($portRange) == 1) {
$port = (int)$portRange[0];
if ($port == 0) {
$this->context->buildViolation($constraint->message)->addViolation();
}
}
if (count($portRange) == 2) {
$fromPort = (int)$portRange[0];
$toPort = (int)$portRange[1];
if ($fromPort == 0 || $toPort == 0) {
$this->context->buildViolation($constraint->message)->addViolation();
}
}
if (count($portRange) > 2) {
$this->context->buildViolation($constraint->message)->addViolation();
}
} catch (\Exception $e) {
$this->context->buildViolation($constraint->message)->addViolation();
}
}
}