id: tekon-info-leak

info:
  name: Tekon - Unauthenticated Log Leak
  author: gy741
  severity: low
  description: A vulnerability in Tekon allows remote unauthenticated users to disclose the Log of the remote device
  reference:
    - https://medium.com/@bertinjoseb/post-auth-rce-based-in-malicious-lua-plugin-script-upload-scada-controllers-located-in-russia-57044425ac38
  classification:
    cpe: cpe:2.3:o:tekon:kio_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: tekon
    product: kio_firmware
    shodan-query: title:"контроллер"
  tags: tekon,exposure,unauth,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/cgi-bin/log.cgi'

    max-size: 2048

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "-- Logs begin at"
          - "end at"
        condition: and

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

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