id: opnhap-detect

info:
  name: OpenHAP Detection
  author: fabaff
  severity: info
  reference:
    - https://www.openhab.org/
  classification:
    cpe: cpe:2.3:a:openhab:openhab_web_interface:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: openhab
    product: openhab_web_interface
    shodan-query: http.title:"openHAB"
  tags: tech,iot,openhab

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'openHAB'

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