id: cargo-lock-package

info:
  name: Cargo Lock Packages Disclosure
  author: DhiyaneshDk
  severity: info
  reference:
    - https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Cargo.lock"
  tags: exposure,files,cargo

http:
  - method: GET
    path:
      - '{{BaseURL}}/Cargo.lock'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "[[package]]"
          - "dependencies = ["
        condition: and

      - type: status
        status:
          - 200

# digest: 490a004630440220210e479ecc6c25d3ca38d5723d6144a114b6f938518c3ca4af2ab8d3a9402d0102201e3115ef5c93f5209a34f7f3adf66011cd73d7961b5569122bc821c66d4b9fef:922c64590222798bb761d5b6d8e72950
