id: qnap-qts-panel

info:
  name: QNAP Turbo NAS Login Panel - Detect
  author: idealphase,daffainfo
  severity: info
  description: |
    QNAP QTS login panel was detected.
  reference:
    - https://www.qnap.com/qts/
  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
    cpe: cpe:2.3:o:qnap:qts:*:*:*:*:*:*:*:*
  metadata:
    google-query: intitle:"QNAP Turbo NAS" inurl:/cgi-bin
    max-request: 2
    product: qts
    shodan-query: product:"QNAP"
    vendor: qnap
    verified: true
  tags: panel,qnap,qts

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/"
      - "{{BaseURL}}/cgi-bin/html/login.html"

    stop-at-first-match: true
    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "QNAP Turbo NAS</title>"

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