Giter Club home page Giter Club logo

Comments (5)

FlorianUekermann avatar FlorianUekermann commented on July 1, 2024 1

Well, I believe the protocol is still exposed on an hsm, we just don't advertise it in the descriptor. So if any illegitimate use of the protocol can lead to sensitive leaks, we need to deactivate it. But I don't have a scenario.
Well... even if it is a problem, which I doubt, the protocol will be properly deactivated once the hsm branch goes away.

from nitrokey-pro-firmware.

szszszsz avatar szszszsz commented on July 1, 2024

Hi @MaVo159 !
I agree - this looks like obvious typo, it should be memset instead.
Reference: memset memcpy.

from nitrokey-pro-firmware.

szszszsz avatar szszszsz commented on July 1, 2024

Note: clearing is already correctly implemented in Storage firmware (checking same file, that is report_protocol.c)
Edit: Other files seems OK in both projects. Searched with memcpy.*0 regexp.

from nitrokey-pro-firmware.

FlorianUekermann avatar FlorianUekermann commented on July 1, 2024

Just checking that my logic isn't off. The nk hsm doesn't use this protocol at all, so these bugs don't matter on the temporary hsm branch. Actually, someone could still use it, but we would never expect a sane user to actually generate reports with sensitive info on an hsm...
Correct?
Otherwise we should remove the corresponding USB callbacks on the hsm branch to make sure this code is dead on hsm.

from nitrokey-pro-firmware.

szszszsz avatar szszszsz commented on July 1, 2024

The functions listed in report_protocol.c (HID protocol) are not used anywhere else. I believe HSM is officially not supporting HID, so we can safely skip porting these changes to hsm branch.

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.