id: pnpm-lock

info:
  name: PNPM Lock Yaml File Disclosure
  author: noraj
  severity: info
  description: |
    The pnpm-lock.yaml file is similar to the package-lock.json file used by npm or the yarn.lock file used by Yarn. It serves as a lock file that ensures consistent and reproducible installations of dependencies across different environments.
  reference:
    - https://pnpm.io/cli/install#tldr
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"pnpm-lock.yaml"
  tags: exposure,files,node,npm,pnpm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/pnpm-lock.yaml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "lockfileVersion:"
          - "specifiers:"
          - "packages:"
        condition: and

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