Search in sources :

Example 1 with AppleAppAttestAttestationStatement

use of com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement in project webauthn4j by webauthn4j.

the class AppleAppAttestAttestationStatementValidator method validateNonce.

private void validateNonce(CoreRegistrationObject registrationObject) {
    AppleAppAttestAttestationStatement attestationStatement = getAttestationStatement(registrationObject);
    X509Certificate attestationCertificate = attestationStatement.getX5c().getEndEntityAttestationCertificate().getCertificate();
    byte[] actualNonce = extractNonce(attestationCertificate);
    byte[] clientDataHash = registrationObject.getClientDataHash();
    byte[] authenticatorData = registrationObject.getAuthenticatorDataBytes();
    byte[] composite = ByteBuffer.allocate(authenticatorData.length + clientDataHash.length).put(authenticatorData).put(clientDataHash).array();
    byte[] expectedNonce = MessageDigestUtil.createSHA256().digest(composite);
    // As nonce is known data to client side(potential attacker), there is no risk of timing attack and it is OK to use `Arrays.equals` instead of `MessageDigest.isEqual`
    if (!Arrays.equals(actualNonce, expectedNonce)) {
        throw new BadAttestationStatementException("App Attest nonce doesn't match.");
    }
}
Also used : BadAttestationStatementException(com.webauthn4j.validator.exception.BadAttestationStatementException) X509Certificate(java.security.cert.X509Certificate) AppleAppAttestAttestationStatement(com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement)

Example 2 with AppleAppAttestAttestationStatement

use of com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement in project webauthn4j by webauthn4j.

the class DeviceCheckManagerTest method validate_assertion_test.

@Test
void validate_assertion_test() {
    DeviceCheckManager deviceCheckManager = DeviceCheckManager.createNonStrictDeviceCheckManager();
    byte[] keyId = Base64Util.decode("VnfqjSp0rWyyqNhrfh+9/IhLIvXuYTPAmJEVQwl4dko=");
    byte[] assertion = Base64Util.decode("omlzaWduYXR1cmVYRjBEAiB4zR/olM8j24vmT3fGVA1eykitnp/jpMG9sM6CNsF2lQIgVCK5x6m/jkocPmX6wuPqlJ8tzbvI9bQnd8XYebJ8XuBxYXV0aGVudGljYXRvckRhdGFYJTBgAsoFXgbFiKUuxqpUgvU2jgKvMIex6dMJ0EDK9dlaQAAAAAE=");
    byte[] challenge = "1234567890abcdefgh".getBytes();
    byte[] clientDataHash = MessageDigestUtil.createSHA256().digest(challenge);
    DCAssertionRequest dcAssertionRequest = new DCAssertionRequest(keyId, assertion, clientDataHash);
    DCServerProperty dcServerProperty = new DCServerProperty("8YE23NZS57.com.kayak.travel", new DefaultChallenge(challenge));
    byte[] attestationObjectBytes = Base64Util.decode("o2NmbXRvYXBwbGUtYXBwYXR0ZXN0Z2F0dFN0bXSiY3g1Y4JZAuQwggLgMIICZqADAgECAgYBdNZm2hAwCgYIKoZIzj0EAwIwTzEjMCEGA1UEAwwaQXBwbGUgQXBwIEF0dGVzdGF0aW9uIENBIDExEzARBgNVBAoMCkFwcGxlIEluYy4xEzARBgNVBAgMCkNhbGlmb3JuaWEwHhcNMjAwOTI3MjAyODE4WhcNMjAwOTMwMjAyODE4WjCBkTFJMEcGA1UEAwxANTY3N2VhOGQyYTc0YWQ2Y2IyYThkODZiN2UxZmJkZmM4ODRiMjJmNWVlNjEzM2MwOTg5MTE1NDMwOTc4NzY0YTEaMBgGA1UECwwRQUFBIENlcnRpZmljYXRpb24xEzARBgNVBAoMCkFwcGxlIEluYy4xEzARBgNVBAgMCkNhbGlmb3JuaWEwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASVMXfBQ2n1hERgyf113lWGstIXHIbeiLJi+oIYyZj/aqNGPACJWSmRK/v5B67uZ2bZrNNSoRrwJyoNiwerRvmdo4HqMIHnMAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgTwMHUGCSqGSIb3Y2QIBQRoMGakAwIBCr+JMAMCAQG/iTEDAgEAv4kyAwIBAb+JMwMCAQG/iTQdBBs4WUUyM05aUzU3LmNvbS5rYXlhay50cmF2ZWylBgQEc2tzIL+JNgMCAQW/iTcDAgEAv4k5AwIBAL+JOgMCAQAwGwYJKoZIhvdjZAgHBA4wDL+KeAgEBjE0LjA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jectConverter.extractAuthenticatorData(attestationObjectBytes);
    AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData = authenticatorDataConverter.convert(authenticatorDataBytes);
    byte[] attestedCredentialDataBytes = authenticatorDataConverter.extractAttestedCredentialData(authenticatorDataBytes);
    AttestedCredentialData attestedCredentialData = attestedCredentialDataConverter.convert(attestedCredentialDataBytes);
    byte[] attestationStatementBytes = attestationObjectConverter.extractAttestationStatement(attestationObjectBytes);
    AppleAppAttestAttestationStatement attestationStatement = objectConverter.getCborConverter().readValue(attestationStatementBytes, AppleAppAttestAttestationStatement.class);
    long counter = authenticatorData.getSignCount();
    DCAppleDevice dcAppleDevice = new DCAppleDeviceImpl(attestedCredentialData, attestationStatement, counter, new AuthenticationExtensionsAuthenticatorOutputs<>());
    DCAssertionParameters dcAssertionParameters = new DCAssertionParameters(dcServerProperty, dcAppleDevice);
    deviceCheckManager.validate(dcAssertionRequest, dcAssertionParameters);
}
Also used : DCAppleDevice(com.webauthn4j.appattest.authenticator.DCAppleDevice) DCServerProperty(com.webauthn4j.appattest.server.DCServerProperty) AttestedCredentialData(com.webauthn4j.data.attestation.authenticator.AttestedCredentialData) DefaultChallenge(com.webauthn4j.data.client.challenge.DefaultChallenge) AuthenticationExtensionAuthenticatorOutput(com.webauthn4j.data.extension.authenticator.AuthenticationExtensionAuthenticatorOutput) DCAppleDeviceImpl(com.webauthn4j.appattest.authenticator.DCAppleDeviceImpl) AppleAppAttestAttestationStatement(com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement) Test(org.junit.jupiter.api.Test)

Example 3 with AppleAppAttestAttestationStatement

use of com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement in project webauthn4j by webauthn4j.

the class AppleAppAttestAttestationStatementValidatorTest method validateAttestationStatementNotNull_test.

@Test
void validateAttestationStatementNotNull_test() {
    AppleAppAttestAttestationStatement attestationStatement = new AppleAppAttestAttestationStatement(new AttestationCertificatePath(), new byte[32]);
    target.validateAttestationStatementNotNull(attestationStatement);
}
Also used : AttestationCertificatePath(com.webauthn4j.data.attestation.statement.AttestationCertificatePath) AppleAppAttestAttestationStatement(com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement) Test(org.junit.jupiter.api.Test)

Example 4 with AppleAppAttestAttestationStatement

use of com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement in project webauthn4j by webauthn4j.

the class AppleAppAttestAttestationStatementValidatorTest method validateX5c_empty_AttestationCertificatePath_test.

@Test
void validateX5c_empty_AttestationCertificatePath_test() {
    final AppleAppAttestAttestationStatement appleAppAttestAttestationStatement = new AppleAppAttestAttestationStatement(new AttestationCertificatePath(), new byte[32]);
    assertThatThrownBy(() -> target.validateX5c(appleAppAttestAttestationStatement)).isInstanceOf(BadAttestationStatementException.class);
}
Also used : AttestationCertificatePath(com.webauthn4j.data.attestation.statement.AttestationCertificatePath) AppleAppAttestAttestationStatement(com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement) Test(org.junit.jupiter.api.Test)

Example 5 with AppleAppAttestAttestationStatement

use of com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement in project webauthn4j by webauthn4j.

the class AppleAppAttestAttestationStatementValidator method validate.

@Override
public AttestationType validate(@NonNull CoreRegistrationObject registrationObject) {
    AssertUtil.notNull(registrationObject, "registrationObject must not be null");
    if (!(registrationObject instanceof DCRegistrationObject)) {
        throw new IllegalArgumentException("registrationObject must be an instance of DCRegistrationObject.");
    }
    if (!supports(registrationObject)) {
        throw new IllegalArgumentException(String.format("Specified format '%s' is not supported by %s.", registrationObject.getAttestationObject().getFormat(), this.getClass().getName()));
    }
    AppleAppAttestAttestationStatement attestationStatement = (AppleAppAttestAttestationStatement) registrationObject.getAttestationObject().getAttestationStatement();
    validateAttestationStatementNotNull(attestationStatement);
    validateX5c(attestationStatement);
    validateNonce(registrationObject);
    validatePublicKey(registrationObject);
    return AttestationType.BASIC;
}
Also used : DCRegistrationObject(com.webauthn4j.appattest.validator.DCRegistrationObject) AppleAppAttestAttestationStatement(com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement)

Aggregations

AppleAppAttestAttestationStatement (com.webauthn4j.appattest.data.attestation.statement.AppleAppAttestAttestationStatement)5 Test (org.junit.jupiter.api.Test)3 AttestationCertificatePath (com.webauthn4j.data.attestation.statement.AttestationCertificatePath)2 DCAppleDevice (com.webauthn4j.appattest.authenticator.DCAppleDevice)1 DCAppleDeviceImpl (com.webauthn4j.appattest.authenticator.DCAppleDeviceImpl)1 DCServerProperty (com.webauthn4j.appattest.server.DCServerProperty)1 DCRegistrationObject (com.webauthn4j.appattest.validator.DCRegistrationObject)1 AttestedCredentialData (com.webauthn4j.data.attestation.authenticator.AttestedCredentialData)1 DefaultChallenge (com.webauthn4j.data.client.challenge.DefaultChallenge)1 AuthenticationExtensionAuthenticatorOutput (com.webauthn4j.data.extension.authenticator.AuthenticationExtensionAuthenticatorOutput)1 BadAttestationStatementException (com.webauthn4j.validator.exception.BadAttestationStatementException)1 X509Certificate (java.security.cert.X509Certificate)1