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,discovery

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