Skip to content
Account takeover Disclosed report Intermediate CVE-2020-8236

PIN for passwordless WebAuthn is asked for but not verified

The WebAuthn implementation did not request user verification and did not check the user verification flag on the server. An attacker with physical access to a victim's security key could log in without entering the PIN.

dschuermann Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 12 days
  • Fixed in 35 days
  • Disclosed after 3 months

Nextcloud introduced WebAuthn passwordless authentication with version 19. As far as we understand, you assume that your implementation provide two-factor authentication:

"The server asking for authentication can request verification of multiple factors, so that a configured key requires the user to not just plug it in but also enter a PIN or scan a finger print." (see https://www.nitrokey.com/news/2020/what-passwordless-world-looks )

We found the same issue like in Microsoft’s implementation: userVerification is not set and the UV flag is not checked on the server. Thus, even though a FIDO2 key with a PIN is added in a user account, the PIN is not required to log in.

The full description is available in our unlisted blog post at: https://hwsecurity.dev/2020/06/webauthn-pin-bypass/

Impact

We have a nice video in our blog post: https://hwsecurity.dev/2020/06/webauthn-pin-bypass/

An attacker could log into the victims account without a PIN by sneaking up on the victim and using the security hardware over NFC.

The original report as published on HackerOne, by dschuermann. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could log into the victim's account without a PIN by physically accessing the security key over NFC.

What the attacker needed

Physical access to victim's security key; NFC capability

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

WebAuthn is a way to log in using a physical security key instead of a password. Some keys also have a PIN for extra security, but the server must ask for it and check that it was entered. Here the server did neither, so anyone who could briefly touch the victim's key could log in without knowing the PIN.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.