Giter Club home page Giter Club logo

Comments (5)

benhowes avatar benhowes commented on July 28, 2024 1

I'm seeing this also. I've checked the cache file from pyup.io (via pipenv) and the following appears in the cache.json:

         "cryptography":[
            "<1.5.3",
            "<0.9.1",
            "<1.0.2",
            ">=1.9.0",
            "<2.3"
         ],

This matches all versions of cryptography!

from safety-db.

shtratos avatar shtratos commented on July 28, 2024

I guess this should be:

         "cryptography":[
            "<1.5.3",
            "<0.9.1",
            "<1.0.2",
            ">=1.9.0,<2.3"
         ],

from safety-db.

shtratos avatar shtratos commented on July 28, 2024

This is fixed now:

"advisory": "python-cryptography versions >=1.9.0 and <2.3 did not enforce a minimum tag length for finalize_with_tag API. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.",
"cve": "CVE-2018-10903",
"id": "pyup.io-36351",
"specs": [
"<=2.2.2"
],
"v": "<=2.2.2"

from safety-db.

donovan avatar donovan commented on July 28, 2024

Hi, it looks like this fix results in false positives for cryptography versions <1.9.0.

╞════════════════════════════╤═══════════╤══════════════════════════╤══════════╡
│ package                    │ installed │ affected                 │ ID       │
╞════════════════════════════╧═══════════╧══════════════════════════╧══════════╡
│ cryptography               │ 1.8.2     │ <=2.2.2                  │ 36351    │
╞══════════════════════════════════════════════════════════════════════════════╡
│ python-cryptography versions >=1.9.0 and <2.3 did not enforce a minimum tag  │
│ length for finalize_with_tag API. If a user did not validate the input lengt │
│ h prior to passing it to finalize_with_tag an attacker could craft an invali │
│ d payload with a shortened tag (e.g. 1 byte) such that they would have a 1 i │
│ n 256 chance of passing the MAC check. GCM tag forgeries can cause key leaka │
│ ge.                                                                          │
╘══════════════════════════════════════════════════════════════════════════════╛

1.8.2 is not vulnerable as per the full report yet it is triggering a failed check.

Do you want me to open a new issue?

from safety-db.

GreenGremlin avatar GreenGremlin commented on July 28, 2024

I'm getting the same false positive for version 1.8.2.

from safety-db.

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.