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

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