id: sophos-mobile-panel

info:
  name: Sophos Mobile Panel - Detect
  author: Adam Crosser,idealphase
  severity: info
  description: Sophos Mobile panel was detected.
  reference:
    - https://www.sophos.com/en-us/products/mobile-control
    - https://www.sophos.com/en-us/support/downloads/sophos-mobile
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:sophos:mobile:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: mobile
    shodan-query: http.title:"Sophos Mobile"
    vendor: sophos
  tags: panel,sophos

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.xhtml?faces-redirect=true'

    matchers:
      - type: word
        words:
          - "<title>Sophos Mobile</title>"

    extractors:
      - type: regex
        group: 1
        regex:
          - 'src="\/javax\.faces\.resource\/texteditor\/texteditor\.js\.xhtml\?ln=primefaces&amp;v=(.+)"><\/script>'
          - 'src="\/javax\.faces\.resource\/components\.js\.xhtml\?ln=primefaces&amp;v=(.+)"><\/script>'
# digest: 490a00463044022078c683d22aaaccffeb05384e642ddce346cc4afee6ba30301d81f6f27940d9b3022052ca096c74c454d97c6e55c2d6ff350c9d42824af5dd952b5eb1f48a4289eed4:922c64590222798bb761d5b6d8e72950