id: osticket-install

info:
  name: osTicket Installer Panel - Detect
  author: ritikchaddha
  severity: critical
  description: osTicket installer panel was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
    cvss-score: 9.4
    cwe-id: CWE-284
    cpe: cpe:2.3:a:osticket:osticket:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: osticket
    product: osticket
    shodan-query:
      - http.title:"osTicket Installer"
      - http.title:"osticket"
      - http.html:"powered by osticket"
      - http.title:"osticket installer"
    fofa-query:
      - body="powered by osticket"
      - title="osticket"
      - title="osticket installer"
    google-query:
      - intitle:"osticket"
      - intitle:"osticket installer"
  tags: panel,osticket,install

http:
  - method: GET
    path:
      - "{{BaseURL}}/upload/setup/install.php"
      - "{{BaseURL}}/setup/install.php"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>osTicket Installer'

      - type: word
        part: body
        words:
          - 'already installed'
        negative: true

      - type: status
        status:
          - 200
# digest: 490a0046304402207d6f82a6827d9818f1063c0cfd3e746c1cf2b572a94d5c9889879a1b1d0d531b022044419cd4bb668834bc018e6a72368d1aa8e4b8e7cbab24f0e12a55553db8841e:922c64590222798bb761d5b6d8e72950