ajinabraham.njsscan.crypto.crypto_node.node_aes_noiv

profile photo of ajinabrahamajinabraham
Author
unknown
Download Count*
License

AES algorithms requires an initialization vector (IV). Providing no or null IV in some implementation results to a 0 IV. Use of a deterministic IV makes dictionary attacks easier.

Run Locally

Run in CI

Defintion

rules:
  - id: node_aes_noiv
    patterns:
      - pattern-either:
          - pattern: |
              $X.createCipheriv("=~/^aes-/i", $KEY, "", ...)
    message: AES algorithms requires an initialization vector (IV). Providing no or
      null IV in some implementation results to a 0 IV. Use of a deterministic
      IV makes dictionary attacks easier.
    languages:
      - javascript
    severity: WARNING
    metadata:
      owasp-web: a9
      cwe: cwe-327
      license: LGPL-3.0-or-later
      vulnerability_class:
        - Other