id: selea-ip-camera

info:
  name: Detect Selea Targa IP OCR-ANPR Camera
  author: geeknik
  severity: info
  description: Various version of the Selea Targa IP OCR-ANPR Camera are vulnerable to an Unauthenticated RTP/RTSP/M-JPEG Stream Disclosure flaw
  reference:
    - https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5619.php
  metadata:
    max-request: 1
  tags: iot,selea,targa

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "SeleaCPSHttpServer"
          - "selea_httpd"
          - "HttpServer/0.1"
        condition: or

      - type: word
        part: body
        words:
          - "Selea CarPlateServer"

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