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 files19
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- Base16EncodingTag.php
- Base64EncodingTag.php
- Base64Tag.php
- Base64UrlEncodingTag.php
- Base64UrlTag.php
- BigFloatTag.php
- CBOREncodingTag.php
- CBORTag.php
- DatetimeTag.php
- DecimalFractionTag.php
- GenericTag.php
- MimeTag.php
- NegativeBigIntegerTag.php
- TagInterface.php
- TagManager.php
- TagManagerInterface.php
- TimestampTag.php
- UnsignedBigIntegerTag.php
- UriTag.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/spomky-labs/cbor-php/src/Tag/MimeTag.php
PHP · 1,376 bytes<?php
declare(strict_types=1);
namespace CBOR\Tag;
use CBOR\CBORObject;
use CBOR\IndefiniteLengthTextStringObject;
use CBOR\Normalizable;
use CBOR\Tag;
use CBOR\TextStringObject;
use InvalidArgumentException;
/**
* @see \CBOR\Test\Tag\MimeTagTest
*/
final class MimeTag extends Tag implements Normalizable
{
public function __construct(int $additionalInformation, ?string $data, CBORObject $object)
{
if (! $object instanceof TextStringObject && ! $object instanceof IndefiniteLengthTextStringObject) {
throw new InvalidArgumentException('This tag only accepts a Byte String object.');
}
parent::__construct($additionalInformation, $data, $object);
}
public static function getTagId(): int
{
return self::TAG_MIME;
}
public static function createFromLoadedData(int $additionalInformation, ?string $data, CBORObject $object): Tag
{
return new self($additionalInformation, $data, $object);
}
public static function create(CBORObject $object): Tag
{
[$ai, $data] = self::determineComponents(self::TAG_MIME);
return new self($ai, $data, $object);
}
public function normalize(): string
{
/** @var TextStringObject|IndefiniteLengthTextStringObject $object */
$object = $this->object;
return $object->normalize();
}
}