Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

pamu2fcfg failure with Thetis key with libu2f-host 1.1.8-1 #115

Closed
bfm59 opened this issue Mar 5, 2019 · 3 comments
Closed

pamu2fcfg failure with Thetis key with libu2f-host 1.1.8-1 #115

bfm59 opened this issue Mar 5, 2019 · 3 comments

Comments

@bfm59
Copy link

bfm59 commented Mar 5, 2019

Starting with libu2f-host version 1.1.8-1 from the Yubico Ubuntu PPA, the pamu2fcfg registration procedure fails for my Thetis FIDO U2F security keys. As shown below, the error message is "Unable to generate registration challenge, error in transport layer (-2)." The same error occurs when pamu2fcg is run under sudo. In contrast, pamu2fcfg with libu2f-host version 1.1.8-1 completes successfully for my Yubikey 4 and my Feitian Multipass FIDO U2F security key.

On a separate computer, which has not yet been upgraded to version 1.1.8-1 (still running version 1.1.7-1) I am still able to register my Thetis U2F keys.

Both computers are running Linux Mint 19.1, which is derived from Ubuntu Bionic.

A transcript showing the failure is given below. Please let me know if I can provide more information. Thank you.

$ pamu2fcfg --debug
USB send: 00ffffffff8600082afe8b76dd052cdb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
USB write returned 65
now trying with timeout 2
USB read rc read 64
USB recv: ffffffff8600112afe8b76dd052cdb00000001020100010100000000000000000000000000000000000000000000000000000000000000000000000000000000
device /dev/hidraw3 discovered as 'EsecuFIDO HID'
version (Interface, Major, Minor, Build): 2, 1, 0, 1 capFlags: 1
JSON: { "challenge": "if2nsOHbcX_k8rse832UCyc1lSZAded3F2lbbfzHuf4", "version": "U2F_V2", "appId": "pam://MY_HOST_NAME" }
JSON challenge URL-B64: if2nsOHbcX_k8rse832UCyc1lSZAded3F2lbbfzHuf4
client data: { "challenge": "if2nsOHbcX_k8rse832UCyc1lSZAded3F2lbbfzHuf4", "origin": "pam://MY_HOST_NAME", "typ": "navigator.id.finishEnrollment" }
JSON: { "challenge": "if2nsOHbcX_k8rse832UCyc1lSZAded3F2lbbfzHuf4", "version": "U2F_V2", "appId": "pam://MY_HOST_NAME" }
JSON app_id pam://MY_HOST_NAME
USB send: 000100000083004900010300000040908ee472616c4cea006a83606fa12bbc5841061622ebc5889b9800d3aa3bc7823f02c5aed1b8108f08065044cc70e843df
USB write returned 65
USB send: 00010000000061b94c4a5261e141764efb58639c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
USB write returned 65
now trying with timeout 2
USB read rc read 64
USB recv: 01000000bf00010b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
USB rc -2
Unable to generate registration challenge, error in transport layer (-2)
$ dpkg -l | grep u2f
ii libpam-u2f 1.0.7-1ppa1bionic1 amd64 universal 2nd factor (U2F) PAM module
ii libu2f-host0 1.1.8-1ppa1bionic1 amd64 Universal 2nd Factor (U2F) host communication C Library
ii libu2f-server0 1.1.0-1build1 amd64 Universal 2nd Factor (U2F) server communication C Library
ii libu2f-udev 1.1.8-1ppa1bionic1 all Universal 2nd Factor (U2F) common files
ii pamu2fcfg 1.0.7-1ppa1bionic1 amd64 universal 2nd factor (U2F) PAM module command-line helper tool
$ uname -a
Linux MY_HOST_NAME 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@klali klali transferred this issue from Yubico/pam-u2f Mar 6, 2019
klali added a commit that referenced this issue Mar 6, 2019
this caused issues on some u2f devices
fixes #115
@klali
Copy link
Member

klali commented Mar 6, 2019

Hey, this issue is in libu2f-host not in pam-u2f, I've transferred the issue.

I've pushed a fix on a branch, would you be able to test that and see if this fix works for you?
(https://github.com/Yubico/libu2f-host/tree/cid_check)

@bfm59
Copy link
Author

bfm59 commented Mar 6, 2019 via email

@klali
Copy link
Member

klali commented Mar 6, 2019

Ok, I'll make a 1.1.9 release with this fix.

@klali klali closed this as completed Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants