Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly incorrect calculation for nonce in: android-safetynet attestation: nonce check hash failed #157

Open
wparad opened this issue Feb 25, 2024 · 1 comment

Comments

@wparad
Copy link
Contributor

wparad commented Feb 25, 2024

We got this request which we believe is 100% valid, but it fails nonce validation.

Attestation:

o2NmbXRxYW5kcm9pZC1zYWZldHluZXRnYXR0U3RtdKJjdmVyaTI0MDYxNTAzOGhyZXNwb25zZVkhVWV5SmhiR2NpT2lKU1V6STFOaUlzSW5nMVl5STZXeUpOU1VsR1lucERRMEpHWldkQmQwbENRV2RKVWtGTFpHWnhVbWx5TWpGMVpVTnBXWGxvVkZJeGNTOVpkMFJSV1VwTGIxcEphSFpqVGtGUlJVeENVVUYzVW1wRlRFMUJhMGRCTVZWRlFtaE5RMVpXVFhoSmFrRm5RbWRPVmtKQmIxUkhWV1IyWWpKa2MxcFRRbFZqYmxaNlpFTkNWRnBZU2pKaFYwNXNZM2xDVFZSRlRYaEZla0ZTUW1kT1ZrSkJUVlJEYTJSVlZYbENSRkZUUVhoU1JGRjNTR2hqVGsxcVVYZE5WRWsxVFVScmQwOVVTVEpYYUdOT1RXcFJkMDVFU1RSTlJHdDNUMVJKTVZkcVFXUk5Vbk4zUjFGWlJGWlJVVVJGZUVwb1pFaFNiR016VVhWWlZ6VnJZMjA1Y0ZwRE5XcGlNakIzWjJkRmFVMUJNRWREVTNGSFUwbGlNMFJSUlVKQlVWVkJRVFJKUWtSM1FYZG5aMFZMUVc5SlFrRlJSSGRyYVRWMWF5OU1VbFJ6YmtRdk1URk5ORmN3VWpZM1ZtaExPUzlSWTIxTldUWlFWRkJhUTNBdlJETm9TM1JNU2tOeGIwWXJOSE0zVlVWdVR6Rm5jU3Q2V201bmVFVjNSVXcwTlUxNGFuRlJUUzlKT1c1YWRFTnRSRlJRVk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ZKRWM2QVprVUcxQXlHcjVDZTZ5Y3U0d2ZiUUxreG9OZVd6MVlScmlJSHB6M3BZM3o2NHkweDBXc19YN0RrUjltVGxuTlA1LWFZN3JycEl4Z2dzNkh5SEFoYXV0aERhdGFYxWiHBGErQpWVx2AXLIjp0SEMi63M47pz0B7WoB8RcCJCRQAAAAC5P9lh8uZGL7EiggAiR954AEEBFuBmM/gdJl8vG0a9UUBTrEOxLrzLMXtlqRe/5iY3u3oq1OdEZGI+lDEz2kmGQS1GKSXMq2CCYlUKm/o3bii59aUBAgMmIAEhWCCqvrmd+5SeUxZgrmYalsbVXC6xz3/YFO2IZgaf3S3kpSJYIML3XGsgqbfruhFpaoLIAjss7wSeZnP6+Iu8a6Xeh75e"
"clientJSON": {
        "type": "webauthn.create",
        "challenge": "Z29vZ2xlLW9hdXRoMnwxMTYzODgxMjk3OTI1OTk2MTA1ODc",
        "origin": "https://login.authress.io",
        "androidPackageName": "com.android.chrome"
    }

The nonce verses the calculated one is here:
qYkhbhAq3oeUy9Umy0cGS8xNY5bVks9EwZPv2B1HS6E=
versus: Lz33Fp8WyXCAB9t7Fk2N3J58XA9RfveYbCY1hCcTT2g=

The code contains this comment, we've reviewed the proceedure from https://www.w3.org/TR/webauthn/#android-safetynet-attestation and it looks like it should be correct, but we can't justify why this would be a problem. Any insight would be appreciated here.

@sirkostya009
Copy link

what's logged to the console whenever you encounter attestation/assertion issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants