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

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: 4a0a0047304502205fc1a5d42499d71b0dc53c696f65e66b1f9686271b91ece87118d9dbc7b92fad022100f99774f3cb34993c0ecb122019c27e19f739237bfe07c034d2cd2d194cf4993d:922c64590222798bb761d5b6d8e72950