Date: Thu, 5 Sep 2024 12:18:43 +0200 From: Jan Behrens <jbe-mlist@magnetkern.de> To: Hotaka Korenori <chaplintokyo@vivaldi.net> Cc: questions@freebsd.org Subject: Re: FIDO2 security key (YubiKey 5 NFC) and WebAuthn Message-ID: <20240905121843.ce4a830c34fb4cab69ebb7bb@magnetkern.de> In-Reply-To: <1725499586705.347452092.1360397@vivaldi.net> References: <20240904104643.ab27db8cc7abc7068fff98ee@magnetkern.de> <1725499586705.347452092.1360397@vivaldi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 05 Sep 2024 01:29:34 +0000 Hotaka Korenori <chaplintokyo@vivaldi.net> wrote: > Hi, >=20 >=20 > I am a newbie here but having a similar issue with Yubikey 5 NFC on Firef= ox on GhostBSD (FreeBSD 14.1 based). I reached out to Yubikey support and = this is the response I got. I haven't yet tried the suggested check re pcs= cd but this does seem to be what the folks at Yubikey seem to feel is the m= ost likely issue. >=20 Hi, thanks for sharing. I don't think "pcscd" is involved in this case. I can use my Yubikey with Firefox (as well as ssh-keygen and a few other programs) WITHOUT pcscd. I need pcscd when I want to use the Yubikey Manager, e.g. to generate TOTP tokens or to change my PIN. (Though it's also possible to change the FIDO2 pin through the "fido2-token" command, which doesn't use "pcscd".) But Firefox just seems to access /dev/uhid0 in my case, for which I need to make sure my user is in the "u2f" group. But even being in the "u2f" group, and with "pcscd" stopped or running, the issue still persists in Firefox. Also restarting "pcscd" does not have any impact on the issue. The only workaround for me is to switch to the text console using CTRL+ALT+F1 and then back to X with CTRL+ALT+F9. I don't need to do anything on the console. Just switching back and forth does the trick (but then allows me to use Firefox just once until I have to do CTRL+ALT+F1 and then CTRL+ALT+F9 again). This feels very weird to me, and I don't know if this is an issue of Firefox or FreeBSD. Since I can also observe the behavior when NO key is inserted (Firefox asks for a token touch only once), I don't think this issue is related to the hardware. >=20 > Chaplintokyo Regards Jan >=20 >=20 >=20 > Michael (Yubico) >=20 > Sep 3, 2024, 11:13?AM PDT >=20 > Hello, > =20 > Thank you for contacting Yubico Support! Michale here, sorry to hear abou= t this issue! > =20 > I'm afraid GhostBS falls outside our scope of support as it is a linux di= stribution. You would need to reach out to them directly. Sorry about that! > =20 > I do have one suggestion, however, and that is to be sure that the pcscd = daemon is running; you can use the following command in the terminal if you= are using systemd: sudo systemctl status pcscd =20 > =20 > I hope this helps! Please let me know if you have any further questions. = Otherwise, have a great day! > =20 >=20 >=20 > Kind regards, >=20 > Michael > Customer Support Specialist | Yubico >=20 >=20 >=20 > On 2024?09?04? 17?46?43? (+09:00), Jan Behrens wrote: >=20 >=20 >=20 > > Hello, >=20 > > >=20 > > I have a problem with my FIDO2 security key (which is a YubiKey 5 NFC). >=20 > > As I'm unsure whether this is an issue of FreeBSD or Firefox, I ask >=20 > > here. >=20 > > >=20 > > Originally, I made a post on the FreeBSD forum, but didn't get a >=20 > > helpful response regarding this issue yet: >=20 > > https://forums.freebsd.org/threads/94605/ >=20 > > >=20 > > In here, I only want to discuss the WebAuthn issue in Firefox, and not >=20 > > the potential security issue regarding "pcscd" also mentioned on the >=20 > > forum. (I made a post to the freebsd-security mailing list in that >=20 > > matter.) >=20 > > >=20 > > The Firefox related problem is as follows: When I go to >=20 > > https://webauthn.io/ and click on "Authenticate" (this is reproducible >=20 > > without a hardware token), then Firefox asks me: >=20 > > >=20 > > "Touch your security key to continue with webauthn.io." >=20 > > >=20 > > If I press cancel and try again, the website will from then on respond >=20 > > with: >=20 > > >=20 > > "The request is not allowed by the user agent or the platform in the >=20 > > current context, possibly because the user denied permission." >=20 > > >=20 > > Similar errors happen on other websites providing WebAuthn login. >=20 > > >=20 > > This is until I switch to the text console using CTRL+ALT+F1 and back >=20 > > to X using CTRL+ALT+F9. Afterwards I can perform WebAuthn registration >=20 > > or authentication once more using Firefox, but only once. After an >=20 > > unsuccessful or successful registration or authentication, it won't >=20 > > work until I switch back to text console and back. >=20 > > >=20 > > If I have several Firefox windows with different profiles open, only >=20 > > the first attempt will be executed, and all other windows will fail >=20 > > from then on. >=20 > > >=20 > > This problem doesn't seem to exist in Chromium. However, I don't >=20 > > understand why switching to the text console and back to X is a >=20 > > workaround. This is why I suspect there might be something FreeBSD >=20 > > related to this problem? >=20 > > >=20 > > Can anyone reproduce this behavior of Firefox using FreeBSD? I'm using >=20 > > package "firefox-130.0_1,2" and FreeBSD 14.1-RELEASE-p3. >=20 > > >=20 > > Kind Regards, >=20 > > Jan Behrens >=20 > > >=20 > > >=20 >=20 > --=20 > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240905121843.ce4a830c34fb4cab69ebb7bb>