id: gogs-installer

info:
  name: Gogs (Go Git Service) - Installer
  author: dhiyaneshDk
  severity: critical
  description: Go Git Service 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:gogs:gogs:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Installation - Gogs"
    product: gogs
    vendor: gogs
  tags: misconfig,exposure,gogs,install

http:
  - method: GET
    path:
      - '{{BaseURL}}/install'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "General Settings"
          - "Database Settings"
        condition: and

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