Git Product home page Git Product logo

Comments (5)

mitsuhiko avatar mitsuhiko commented on August 23, 2024

Hmm. Wondering if that is a problem or not. The only thing that you changed is the transport format, not the payload.

from itsdangerous.

fmarczin avatar fmarczin commented on August 23, 2024

I see the same thing, and I wonder if that's expected behaviour.

Here's my test case:

In [0]: import itsdangerous as its
        s = its.Signer('admin123')
        ssig = s.sign('My String')
        ssig

Out[0]: 'My String.PZm3orlKYIkiG7WgwPQcrKSwmRE'

In [1]: for lastchar in 'CDEFGHIJ':
            sig = ssig[:-1] + lastchar
            try:
                print('{}: {}'.format(sig, s.unsign(sig)))
            except its.BadSignature:
                print('{}: Bad'.format(sig))

My String.PZm3orlKYIkiG7WgwPQcrKSwmRC: Bad
My String.PZm3orlKYIkiG7WgwPQcrKSwmRD: Bad
My String.PZm3orlKYIkiG7WgwPQcrKSwmRE: My String
My String.PZm3orlKYIkiG7WgwPQcrKSwmRF: My String
My String.PZm3orlKYIkiG7WgwPQcrKSwmRG: My String
My String.PZm3orlKYIkiG7WgwPQcrKSwmRH: My String
My String.PZm3orlKYIkiG7WgwPQcrKSwmRI: Bad
My String.PZm3orlKYIkiG7WgwPQcrKSwmRJ: Bad

from itsdangerous.

baubie avatar baubie commented on August 23, 2024

I don't see this as a security issue as the whole point of itsdangerous is to verify a payload was not modified. We do this by creating a signature that, theoretically, only a trusted user can produce. In my mind, unless this makes it easier for an attacker to forge signatures or create new signatures based on existing ones, I don't see it as a security threat.

from itsdangerous.

spinus avatar spinus commented on August 23, 2024

OK, so probably this issue can be closed safely.

from itsdangerous.

arnuschky avatar arnuschky commented on August 23, 2024

ACK, should be closed.

from itsdangerous.

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.