id: unigui-server-monitor-exposure

info:
  name: UniGUI Server Monitor Panel - Exposure
  author: serrapa
  severity: low
  description: |
    Detects exposed UniGUI Server Monitor Panels which could reveal sensitive server statistics, users sessions, licensing information and others data.
  reference:
    - https://www.unigui.com/doc/online_help/using-server-monitor-(server-c.htm
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"uniGUI"
    fofa-query: title="uniGUI"
  tags: exposure,unigui,misconfig

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "uniGUI Standalone Server", "uniGUI License Information", "Server Statistics")'
          - 'status_code == 200'
        condition: and

      - type: dsl
        dsl:
          - 'contains(body, "layout:\"fit\",title:\"uniGUI Standalone Server\"")'
          - 'contains(body, "layout:\"absolute\",title:\"Server Statistics\"")'
        condition: or
# digest: 490a004630440220470e57a438d0f1756742db3922951484d08c9da451c5c54d630470cb1eefc60d02204c42d4365da74295a93f601d359c13d19a608ebb730cc2a50db63223e39ade45:922c64590222798bb761d5b6d8e72950