Giter Club home page Giter Club logo

Comments (4)

tlaurion avatar tlaurion commented on August 19, 2024 1

@szszszsz So Heads now makes sure that PINs are <= 25 characters

from nitrokey-pro-firmware.

tlaurion avatar tlaurion commented on August 19, 2024

@szszszsz Was this corrected in newer firmware versions?
Seems like this is present to firmware 0.9 0.10 and 0.11 and impacts linuxboot/heads#1167 which doesn't report any error when setting the PIN, but fails at HOTP sealing with Admin PIN.

I didn't meet this limitation in my tests with "Insurgo Open Technologies" which is 25 chars. But 26 chars+ < 32 fails...

from nitrokey-pro-firmware.

tlaurion avatar tlaurion commented on August 19, 2024

@szszszsz @jans23: the firmware (0.9, 0.10, 0.11) permits longer PINs to be provisioned (up to 64?)
But HOTP sealing (Heads) only works when provided with GPG Admin PIN <=25 chars.

linuxboot/heads#1168 circumvents this firmware issue under Heads OEM Factory Reset/Re-Ownership security components provisioning (forcing GPG Admin PIN <=25 chars and GPG User PIN <=64 chars) for all USB Security dongles, also limiting custom passphrase (which is propagated to all security components, including GPG Admin PIN) to be <=25 characters as well to circumvent this issue.

Whatever happens with this issue won't make us go back in time for Nitrokey Pro devices which aren't user upgradeable, so fixing this results in some kind of limitation for all USB Security dongles to be provisioned/used under Heads.

As of now, Heads master only limited the minimum size of the PIN to be 8 chars, not enforcing this known limitation (which is not 20 chars, but 25. Why 25, not 20, is another topic).

from nitrokey-pro-firmware.

szszszsz avatar szszszsz commented on August 19, 2024

Hi @tlaurion! Sorry for the delay.

  1. Indeed the protocol used is limited to 20-25 characters for the PIN length, depending on the command. Thank you for adding this check.
  2. This problem is still present in the current Nitrokey Pro firmware unfortunately.
  3. As for the solution we could:
    • fix this problem in the current Nitrokey Pro firmware,
    • add support to the nitrokey-hotp-verification for this change (selecting protocol by the firmware version), and
    • leave the check from the mentioned PR only for the non-upgradable older versions, which are <= 0.10.

from nitrokey-pro-firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.