id: gogs-panel

info:
  name: Gogs Login Panel - Detect
  author: DhiyaneshDk,daffainfo
  severity: info
  description: Gogs login panel was detected.
  reference:
    - https://gogs.io/
  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:gogs:gogs:*:*:*:*:*:*:*:*
  metadata:
    google-query: intitle:"Sign In - Gogs"
    max-request: 1
    product: gogs
    shodan-query: title:"Sign In - Gogs"
    vendor: gogs
    verified: true
  tags: panel,gogs

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<meta property="og:title" content="Gogs'
          - 'js/gogs.js?v='
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - 'Version: ([0-9.]+) Page:'
# digest: 4b0a00483046022100b63c9cd7a4ba08a273fb46fb3c087b2884a6228b669bdf5c27ba536e12f67d9b0221008de34f9f4369293b533dff1b8ab62509668eefe4b91fb26011202f5de982189f:922c64590222798bb761d5b6d8e72950