id: gitea-installer

info:
  name: Gitea Installer Exposure
  author: DhiyaneshDk
  severity: medium
  description: Gitea is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gitea
    product: gitea
    shodan-query: 'title:"Installation -  Gitea: Git with a cup of tea"'
  tags: misconfig,gitea,install,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Installation -  Gitea: Git with a cup of tea'
          - 'Database Name'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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