Giter Club home page Giter Club logo

Comments (7)

Firstyear avatar Firstyear commented on August 11, 2024

Inside the crate we can just use challenge.0 though can't we?

from webauthn-rs.

hgzimmerman avatar hgzimmerman commented on August 11, 2024

Yes, internally nothing has changed, but Challenge is a type that is exposed publicly, and for whatever reason a user might want to make use of the inner data in the Challenge in a different context (ex: serializing). Currently, the change I've made is a regression, as before the inner byte vector was just pub.

from webauthn-rs.

Firstyear avatar Firstyear commented on August 11, 2024

I think that people shouldn't be tampering with the challenges that we generate though, so I'm happy that this is "hidden". There are actually some issues under discussion in the webauthn group about this, and people "mis-using" the challenge field to sign arbitrary data, but it actually weakens the system.

from webauthn-rs.

Firstyear avatar Firstyear commented on August 11, 2024

w3c/webauthn#1595

from webauthn-rs.

hgzimmerman avatar hgzimmerman commented on August 11, 2024

Interesting. I think that is reasonable.
I would think that having a public new(bytes: Vec<u8>) function would be problematic if we wish to prevent users from placing arbitrary data in the challenge. Perhaps that should be made pub(crate) instead?

from webauthn-rs.

Firstyear avatar Firstyear commented on August 11, 2024

Yes, I think so :)

from webauthn-rs.

hgzimmerman avatar hgzimmerman commented on August 11, 2024

Thanks!

from webauthn-rs.

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.