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 files39
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AttestationStatement/
- AuthenticationExtensions/
- CeremonyStep/
- CertificateChainChecker/
- ClientDataCollector/
- Counter/
- Denormalizer/
- Event/
- Exception/
- TokenBinding/
- TrustPath/
- Util/
- AttestedCredentialData.php
- AuthenticatorAssertionResponse.php
- AuthenticatorAssertionResponseValidator.php
- AuthenticatorAttestationResponse.php
- AuthenticatorAttestationResponseValidator.php
- AuthenticatorData.php
- AuthenticatorDataLoader.php
- AuthenticatorResponse.php
- AuthenticatorSelectionCriteria.php
- CertificateToolbox.php
- CollectedClientData.php
- Credential.php
- PublicKeyCredential.php
- PublicKeyCredentialCreationOptions.php
- PublicKeyCredentialDescriptor.php
- PublicKeyCredentialDescriptorCollection.php
- PublicKeyCredentialEntity.php
- PublicKeyCredentialLoader.php
- PublicKeyCredentialOptions.php
- PublicKeyCredentialParameters.php
- PublicKeyCredentialRequestOptions.php
- PublicKeyCredentialRpEntity.php
- PublicKeyCredentialSource.php
- PublicKeyCredentialSourceRepository.php
- PublicKeyCredentialUserEntity.php
- StringStream.php
- U2FPublicKey.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/web-auth/webauthn-lib/src/PublicKeyCredentialParameters.php
PHP · 2,239 bytes<?php
declare(strict_types=1);
namespace Webauthn;
use JsonSerializable;
use Webauthn\Exception\InvalidDataException;
use function array_key_exists;
use const JSON_THROW_ON_ERROR;
class PublicKeyCredentialParameters implements JsonSerializable
{
/**
* @private
*/
public function __construct(
public readonly string $type,
public readonly int $alg
) {
}
public static function create(string $type, int $alg): self
{
return new self($type, $alg);
}
public static function createPk(int $alg): self
{
return self::create(PublicKeyCredentialDescriptor::CREDENTIAL_TYPE_PUBLIC_KEY, $alg);
}
/**
* @deprecated since 4.7.0. Please use the property directly.
* @infection-ignore-all
*/
public function getType(): string
{
return $this->type;
}
/**
* @deprecated since 4.7.0. Please use the property directly.
* @infection-ignore-all
*/
public function getAlg(): int
{
return $this->alg;
}
/**
* @deprecated since 4.8.0. Please use {Webauthn\Denormalizer\WebauthnSerializerFactory} for converting the object.
* @infection-ignore-all
*/
public static function createFromString(string $data): self
{
$data = json_decode($data, true, flags: JSON_THROW_ON_ERROR);
return self::createFromArray($data);
}
/**
* @param mixed[] $json
* @deprecated since 4.8.0. Please use {Webauthn\Denormalizer\WebauthnSerializerFactory} for converting the object.
* @infection-ignore-all
*/
public static function createFromArray(array $json): self
{
array_key_exists('type', $json) || throw InvalidDataException::create(
$json,
'Invalid input. "type" is missing.'
);
array_key_exists('alg', $json) || throw InvalidDataException::create(
$json,
'Invalid input. "alg" is missing.'
);
return self::create($json['type'], $json['alg']);
}
/**
* @return mixed[]
*/
public function jsonSerialize(): array
{
return [
'type' => $this->type,
'alg' => $this->alg,
];
}
}