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 files1

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

src/CloudPanel/Gce/Instance.php

PHP · 2,966 bytes
<?php
 namespace App\CloudPanel\Gce; use App\CloudPanel\Instance as BaseInstance; use App\Gce\Client as GceClient; class Instance extends BaseInstance { private ?GceClient $gceClient = null; private ?string $instanceId = null; private ?string $instanceName = null; private ?string $machineType = null; private ?string $projectId = null; private ?string $zone = null; public function __construct(GceClient $gceClient) { parent::__construct(); $this->gceClient = $gceClient; } public function setGceClient(GceClient $gceClient) : void { $this->gceClient = $gceClient; } public function getGceClient() : ?GceClient { return $this->gceClient; } public function setInstanceId(string $instanceId) : void { $this->instanceId = $instanceId; } public function getInstanceId() : string { goto b870b; dca5f: $this->instanceId = $this->gceClient->getMetaDataInstanceId(); goto bf38d; b870b: if (!(true === is_null($this->instanceId))) { goto Cb073; } goto dca5f; bf38d: Cb073: goto f8151; f8151: return $this->instanceId; goto B989d; B989d: } public function setInstanceName(string $instanceName) : void { $this->instanceName = $instanceName; } public function getInstanceName() : string { goto c18a9; C1d8b: return $this->instanceName; goto B05ca; Cfd06: $this->instanceName = $this->gceClient->getMetaDataInstanceName(); goto A805d; A805d: fef2f: goto C1d8b; c18a9: if (!(true === is_null($this->instanceName))) { goto fef2f; } goto Cfd06; B05ca: } public function setIpv4PublicIp(string $ipv4PublicIp) : void { $this->ipv4PublicIp = $ipv4PublicIp; } public function getIpv4PublicIp() : ?string { goto Bf50a; b4222: $this->ipv4PublicIp = $this->gceClient->getMetaDataIpv4PublicIp(); goto a6c6b; a6c6b: Ebd67: goto E26ad; Bf50a: if (!(true === is_null($this->ipv4PublicIp))) { goto Ebd67; } goto b4222; E26ad: return $this->ipv4PublicIp; goto F70c8; F70c8: } public function setMachineType(string $machineType) : void { $this->machineType = $machineType; } public function getMachineType() : string { goto F1fd5; F1fd5: if (!(true === is_null($this->machineType))) { goto E7cf0; } goto b0fba; a17ab: return $this->machineType; goto d4b5d; b0fba: $this->machineType = $this->gceClient->getMetaDataMachineType(); goto C2d53; C2d53: E7cf0: goto a17ab; d4b5d: } public function setProjectId(string $projectId) : void { $this->projectId = $projectId; } public function getProjectId() : string { goto dc3a3; A91a8: return $this->projectId; goto B9a0c; Bc058: $this->projectId = $this->gceClient->getMetaDataProjectId(); goto a15ec; a15ec: b4573: goto A91a8; dc3a3: if (!(true === is_null($this->projectId))) { goto b4573; } goto Bc058; B9a0c: } public function setZone(string $zone) : void { $this->zone = $zone; } public function getZone() : string { goto e661f; e661f: if (!(true === is_null($this->zone))) { goto E2345; } goto B2a51; D176e: E2345: goto cbfd2; B2a51: $this->zone = $this->gceClient->getMetaDataZone(); goto D176e; cbfd2: return $this->zone; goto Dd125; Dd125: } }