Exploit databaseDownload repository ZIP
GH-8c7f0e4b0e998904a1d6f7dcd99e3e7d
d-xuan/cve-2024-52510
Sources for CVE-2024-52510
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files62
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AccessCondition.php
- AccessTierTrait.php
- AppendBlockOptions.php
- AppendBlockResult.php
- Blob.php
- BlobAccessPolicy.php
- BlobBlockType.php
- BlobPrefix.php
- BlobProperties.php
- BlobServiceOptions.php
- BlobType.php
- Block.php
- BlockList.php
- BreakLeaseResult.php
- CommitBlobBlocksOptions.php
- Container.php
- ContainerACL.php
- ContainerAccessPolicy.php
- ContainerProperties.php
- CopyBlobFromURLOptions.php
- CopyBlobOptions.php
- CopyBlobResult.php
- CopyState.php
- CreateBlobBlockOptions.php
- CreateBlobOptions.php
- CreateBlobPagesOptions.php
- CreateBlobPagesResult.php
- CreateBlobSnapshotOptions.php
- CreateBlobSnapshotResult.php
- CreateBlockBlobOptions.php
- CreateContainerOptions.php
- CreatePageBlobFromContentOptions.php
- CreatePageBlobOptions.php
- DeleteBlobOptions.php
- GetBlobMetadataOptions.php
- GetBlobMetadataResult.php
- GetBlobOptions.php
- GetBlobPropertiesOptions.php
- GetBlobPropertiesResult.php
- GetBlobResult.php
- GetContainerACLResult.php
- GetContainerPropertiesResult.php
- LeaseMode.php
- LeaseResult.php
- ListBlobBlocksOptions.php
- ListBlobBlocksResult.php
- ListBlobsOptions.php
- ListBlobsResult.php
- ListContainersOptions.php
- ListContainersResult.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/microsoft/azure-storage-blob/src/Blob/Models/ListContainersResult.php
PHP · 6,940 bytes<?php
/**
* LICENSE: The MIT License (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://github.com/azure/azure-storage-php/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package MicrosoftAzure\Storage\Blob\Models
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @link https://github.com/azure/azure-storage-php
*/
namespace MicrosoftAzure\Storage\Blob\Models;
use MicrosoftAzure\Storage\Blob\Internal\BlobResources as Resources;
use MicrosoftAzure\Storage\Common\Internal\Utilities;
use MicrosoftAzure\Storage\Common\Models\MarkerContinuationToken;
use MicrosoftAzure\Storage\Common\MarkerContinuationTokenTrait;
/**
* Container to hold list container response object.
*
* @category Microsoft
* @package MicrosoftAzure\Storage\Blob\Models
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @link https://github.com/azure/azure-storage-php
*/
class ListContainersResult
{
use MarkerContinuationTokenTrait;
private $containers;
private $prefix;
private $marker;
private $maxResults;
private $accountName;
/**
* Creates ListBlobResult object from parsed XML response.
*
* @param array $parsedResponse XML response parsed into array.
* @param string $location Contains the location for the previous
* request.
*
* @internal
*
* @return ListContainersResult
*/
public static function create(array $parsedResponse, $location = '')
{
$result = new ListContainersResult();
$serviceEndpoint = Utilities::tryGetKeysChainValue(
$parsedResponse,
Resources::XTAG_ATTRIBUTES,
Resources::XTAG_SERVICE_ENDPOINT
);
$result->setAccountName(Utilities::tryParseAccountNameFromUrl(
$serviceEndpoint
));
$result->setPrefix(Utilities::tryGetValue(
$parsedResponse,
Resources::QP_PREFIX
));
$result->setMarker(Utilities::tryGetValue(
$parsedResponse,
Resources::QP_MARKER
));
$nextMarker =
Utilities::tryGetValue($parsedResponse, Resources::QP_NEXT_MARKER);
if ($nextMarker != null) {
$result->setContinuationToken(
new MarkerContinuationToken(
$nextMarker,
$location
)
);
}
$result->setMaxResults(Utilities::tryGetValue(
$parsedResponse,
Resources::QP_MAX_RESULTS
));
$containers = array();
$rawContainer = array();
if (!empty($parsedResponse['Containers'])) {
$containersArray = $parsedResponse['Containers']['Container'];
$rawContainer = Utilities::getArray($containersArray);
}
foreach ($rawContainer as $value) {
$container = new Container();
$container->setName($value['Name']);
$container->setUrl($serviceEndpoint . $value['Name']);
$container->setMetadata(
Utilities::tryGetValue($value, Resources::QP_METADATA, array())
);
$properties = new ContainerProperties();
$date = $value['Properties']['Last-Modified'];
$date = Utilities::rfc1123ToDateTime($date);
$properties->setLastModified($date);
$properties->setETag(Utilities::tryGetValueInsensitive(Resources::ETAG, $value['Properties']));
if (array_key_exists('LeaseStatus', $value['Properties'])) {
$properties->setLeaseStatus($value['Properties']['LeaseStatus']);
}
if (array_key_exists('LeaseState', $value['Properties'])) {
$properties->setLeaseStatus($value['Properties']['LeaseState']);
}
if (array_key_exists('LeaseDuration', $value['Properties'])) {
$properties->setLeaseStatus($value['Properties']['LeaseDuration']);
}
if (array_key_exists('PublicAccess', $value['Properties'])) {
$properties->setPublicAccess($value['Properties']['PublicAccess']);
}
$container->setProperties($properties);
$containers[] = $container;
}
$result->setContainers($containers);
return $result;
}
/**
* Sets containers.
*
* @param array $containers list of containers.
*
* @return void
*/
protected function setContainers(array $containers)
{
$this->containers = array();
foreach ($containers as $container) {
$this->containers[] = clone $container;
}
}
/**
* Gets containers.
*
* @return Container[]
*/
public function getContainers()
{
return $this->containers;
}
/**
* Gets prefix.
*
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* Sets prefix.
*
* @param string $prefix value.
*
* @return void
*/
protected function setPrefix($prefix)
{
$this->prefix = $prefix;
}
/**
* Gets marker.
*
* @return string
*/
public function getMarker()
{
return $this->marker;
}
/**
* Sets marker.
*
* @param string $marker value.
*
* @return void
*/
protected function setMarker($marker)
{
$this->marker = $marker;
}
/**
* Gets max results.
*
* @return string
*/
public function getMaxResults()
{
return $this->maxResults;
}
/**
* Sets max results.
*
* @param string $maxResults value.
*
* @return void
*/
protected function setMaxResults($maxResults)
{
$this->maxResults = $maxResults;
}
/**
* Gets account name.
*
* @return string
*/
public function getAccountName()
{
return $this->accountName;
}
/**
* Sets account name.
*
* @param string $accountName value.
*
* @return void
*/
protected function setAccountName($accountName)
{
$this->accountName = $accountName;
}
}