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 files24
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- OtherObject/
- Tag/
- AbstractCBORObject.php
- ByteStringObject.php
- CBORObject.php
- Decoder.php
- DecoderInterface.php
- IndefiniteLengthByteStringObject.php
- IndefiniteLengthListObject.php
- IndefiniteLengthMapObject.php
- IndefiniteLengthTextStringObject.php
- LengthCalculator.php
- ListObject.php
- MapItem.php
- MapObject.php
- NegativeIntegerObject.php
- Normalizable.php
- OtherObject.php
- Stream.php
- StringStream.php
- Tag.php
- TextStringObject.php
- UnsignedIntegerObject.php
- Utils.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/spomky-labs/cbor-php/src/AbstractCBORObject.php
PHP · 605 bytes<?php
declare(strict_types=1);
namespace CBOR;
use Stringable;
use function chr;
abstract class AbstractCBORObject implements CBORObject, Stringable
{
public function __construct(
private int $majorType,
protected int $additionalInformation
) {
}
public function __toString(): string
{
return chr($this->majorType << 5 | $this->additionalInformation);
}
public function getMajorType(): int
{
return $this->majorType;
}
public function getAdditionalInformation(): int
{
return $this->additionalInformation;
}
}