id: npm-shrinkwrap-exposure

info:
  name: Node Shrinkwrap Exposure
  author: DhiyaneshDk,noraj
  severity: info
  description: |
    A file created by npm shrinkwrap. It is identical to package-lock.json.
  reference:
    - https://docs.npmjs.com/cli/v9/configuring-npm/npm-shrinkwrap-json
  classification:
    cpe: cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: npmjs
    product: npm
    shodan-query: html:"npm-shrinkwrap.json"
  tags: config,exposure,npm,files,node,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/npm-shrinkwrap.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "version"
          - "dependencies"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e26b6b0e51fa2d946fda740678759f1afde0403c798d45a4fc208e969f2bf491022100a5a2c888febbfc09ed569057ca709e945115eb2b7a79f22b5f2d3df5d58d1343:922c64590222798bb761d5b6d8e72950