id: puppetboard-panel

info:
  name: Puppetboard Panel - Detect
  author: c-sh0,daffainfo
  severity: info
  description: Puppetboard panel was detected.
  reference: https://github.com/voxpupuli/puppetboard
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Puppetboard"
  tags: panel,puppet,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<a href="https://github.com/voxpupuli/puppetboard" target="_blank">'
          - 'puppetboard.css" rel="stylesheet"'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<a href="https://github.com/voxpupuli/puppetboard" target="_blank">([0-9.]+)</a></div>'
# digest: 4b0a0048304602210098097d5eedcf36b4b7c52b08904be2f408355724fda58636d84403735b0529f6022100d1ff10133ecdd2c2a7792d41e99672bcdee258efe1e6a0b1b1f4ef8aa9e34e7c:922c64590222798bb761d5b6d8e72950