ajinabraham.njsscan.crypto.crypto_node.node_sha1

profile photo of ajinabrahamajinabraham
Author
unknown
Download Count*
License

SHA1 is a a weak hash which is known to have collision. Use a strong hashing function.

Run Locally

Run in CI

Defintion

rules:
  - id: node_sha1
    patterns:
      - pattern: |
          $X.createHash("sha1")
    message: SHA1 is a a weak hash which is known to have collision. Use a strong
      hashing function.
    languages:
      - javascript
    severity: WARNING
    metadata:
      owasp-web: a9
      cwe: cwe-327
      license: LGPL-3.0-or-later
      vulnerability_class:
        - Other