id: gitea-login

info:
  name: Gitea Login Panel - Detect
  author: dhiyaneshDK
  severity: info
  description: Gitea 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:gitea:gitea:*:*:*:*:jenkins:*:*:*
  metadata:
    max-request: 1
    product: gitea
    shodan-query: html:"Powered by Gitea Version"
    vendor: gitea
  tags: gitea,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}/user/login'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Powered by Gitea'

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