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
    vendor: sophos
    product: mobile
    shodan-query:
      - http.title:"Sophos Mobile"
      - http.title:"sophos mobile"
      - http.favicon.hash:-1274798165
    fofa-query:
      - icon_hash=-1274798165
      - title="sophos mobile"
    google-query: intitle:"sophos mobile"
  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: 4a0a00473045022100ae26005ab2326564f4ce5921372b0ffbc6e14f1c10638a53aa3c2351e5e60906022022a7314ef531974dab9eb26524f4395362e14b78743aef070c96ef840680a498:922c64590222798bb761d5b6d8e72950