Giter VIP home page Giter VIP logo

Comments (7)

ozten avatar ozten commented on June 16, 2024

I'm going to create a branch of v0.4.2.

There is one non-trivial change in master... which I don't think we want to QA. Or should we add that to the hotpatch?

from browserid-crypto.

ozten avatar ozten commented on June 16, 2024

There is one non-trivial change in master... which I don't think we want to QA. Or should we add that to the hotpatch?

Oh, actually, that change is in bin/check-assertion which I don't think is used in production.

from browserid-crypto.

ozten avatar ozten commented on June 16, 2024

This bug is probably invalid. The APIs take a date as input. Clock skew can be adjusted for by the caller.

Our issue is can be fixed by setting new Date() to 10 seconds into the future, when we call jwcrypto.cert.verifyBundle right here.

CCing @lloyd and @warner

Closing, will open bug in core.

from browserid-crypto.

ozten avatar ozten commented on June 16, 2024

via IRC

warner: so if you pass in now+5min, it'll assert that .iat<now+5min and .exp>now+5min, which lets you tolerate a fast IDP clock for .iat, but makes it worse for .exp (the IDP clock's slowness plus the RTT from IDP to verifier must be >5min)

from browserid-crypto.

ozten avatar ozten commented on June 16, 2024

I don't see in browserid or jwcrypo where we pad for any clock skew... actually. In IRC I heard there was an allowance backed in, but I'm guessing this is using cert expiration as the skew allowance.

In test/assertion-test.js we actually test that an assertion with an expiration of 1 second ago fails to verify.

I'll add 120 seconds of skew allowance in the past, as discussed on IRC.

from browserid-crypto.

ozten avatar ozten commented on June 16, 2024

PR #59

@warner would you be available to review?

from browserid-crypto.

mook avatar mook commented on June 16, 2024

See also mozilla/persona#2814 where this was encountered by external IdPs (my copy being https://github.com/mook/browseridp/blob/acec78ccb6/content/interceptor.js#L148 )
(Sorry for spamming jwcrypto, nobody actually mentioned the browserid issue number)

from browserid-crypto.

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.