id: upnp-device-detect

info:
  name: Detect Basic uPNP Device
  author: geeknik
  severity: info
  description: uPNP Device was detected.
  reference:
    - https://www.upnp.org/specs/basic/UPnP-basic-Basic-v1-Device.pdf
  metadata:
    max-request: 1
  tags: upnp,iot

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

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "urn:schemas-upnp-org:device-1-0"
          - "<deviceType>"
          - "<modelName>"
        part: body
        condition: and

    extractors:
      - type: regex
        name: model
        regex:
          - <modelName>.*</modelName>
          - <modelNumber>.*</modelNumber>
# digest: 4a0a0047304502203885d76e4b58ce200288ee0805e4077e9e7e3c22596bca330841f47f57f5729b022100e9f28637f4eb36014c412a3c2cdec42468dd865ea58b2969c5784b5bb1cc5d01:922c64590222798bb761d5b6d8e72950