id: gitblit-panel

info:
  name: Gitblit Login Panel - Detect
  author: tess
  severity: info
  description: Gitblit login panel was detected.
  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:a:gitblit:gitblit:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gitblit
    product: gitblit
    shodan-query:
      - http.title:"Gitblit"
      - http.title:"gitblit"
      - http.html:"gitblit"
    fofa-query:
      - body="gitblit"
      - title="gitblit"
    google-query: intitle:"gitblit"
  tags: panel,gitblit

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Gitblit</title>"
          - "Welcome to Gitblit"
        condition: or

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