id: liveview-axis-camera

info:
  name: AXIS Network Camera Live View - Detect
  author: dhiyaneshDK,f1she3
  severity: info
  description: AXIS Network Camera live view was detected.
  reference:
    - https://www.exploit-db.com/ghdb/6843
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 2
  tags: axis,edb,iot

http:
  - method: GET
    path:
      - '{{BaseURL}}/view/viewer_index.shtml'
      - '{{BaseURL}}/pics/logo_70x29px.gif'

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: dsl
        name: stream-view
        dsl:
          - 'contains(tolower(body), "live view  - axis")'
          - 'contains(tolower(body), "live view - axis")'
        condition: or

      - type: dsl
        name: logo
        dsl:
          - 'status_code == 200'
          - '"1106649083" == mmh3(base64_py(body))'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'AXIS (.*) Network Camera</title>'

# digest: 4a0a00473045022001e6f81001b910b8313bb09665db46b677eeaa713eef56f1912ec2b435b795ba0221009acea89b98ac3c753ccf23f78b35f0cd3177b595d1b4e8f2c72a72dac355e6a3:922c64590222798bb761d5b6d8e72950
