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 files23
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- CeremonyStep.php
- CeremonyStepManager.php
- CeremonyStepManagerFactory.php
- CheckAlgorithm.php
- CheckAllowedCredentialList.php
- CheckAttestationFormatIsKnownAndValid.php
- CheckBackupBitsAreConsistent.php
- CheckChallenge.php
- CheckClientDataCollectorType.php
- CheckCounter.php
- CheckCredentialId.php
- CheckExtensions.php
- CheckHasAttestedCredentialData.php
- CheckMetadataStatement.php
- CheckOrigin.php
- CheckRelyingPartyIdIdHash.php
- CheckSignature.php
- CheckTopOrigin.php
- CheckUserHandle.php
- CheckUserVerification.php
- CheckUserWasPresent.php
- HostTopOriginValidator.php
- TopOriginValidator.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/web-auth/webauthn-lib/src/CeremonyStep/CheckBackupBitsAreConsistent.php
PHP · 1,235 bytes<?php
declare(strict_types=1);
namespace Webauthn\CeremonyStep;
use Webauthn\AuthenticatorAssertionResponse;
use Webauthn\AuthenticatorAttestationResponse;
use Webauthn\Exception\AuthenticatorResponseVerificationException;
use Webauthn\PublicKeyCredentialCreationOptions;
use Webauthn\PublicKeyCredentialRequestOptions;
use Webauthn\PublicKeyCredentialSource;
final class CheckBackupBitsAreConsistent implements CeremonyStep
{
public function process(
PublicKeyCredentialSource $publicKeyCredentialSource,
AuthenticatorAssertionResponse|AuthenticatorAttestationResponse $authenticatorResponse,
PublicKeyCredentialRequestOptions|PublicKeyCredentialCreationOptions $publicKeyCredentialOptions,
?string $userHandle,
string $host
): void {
$authData = $authenticatorResponse instanceof AuthenticatorAssertionResponse ? $authenticatorResponse->authenticatorData : $authenticatorResponse->attestationObject->authData;
if ($authData->isBackupEligible()) {
return;
}
$authData->isBackedUp() !== true || throw AuthenticatorResponseVerificationException::create(
'Backup up bit is set but the backup is not eligible.'
);
}
}