id: opennebula-panel

info:
  name: OpenNebula Login Panel - Detect
  author: kh4sh3i,darses
  severity: info
  description: |
    OpenNebula login panel was detected.
  reference:
    - https://opennebula.io/
    - https://github.com/OpenNebula
  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
  metadata:
    verified: true
    max-request: 1
    shodan-query:
      - http.html:"opennebula"
      - title:"OpenNebula Sunstone Login"
      - http.favicon.hash:-1616420987
      - http.favicon.hash:656672194
    fofa-query:
      - title="OpenNebula Sunstone Login"
      - icon_hash="-119786698"
      - icon_hash="656672194"
  tags: panel,opennebula,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>OpenNebula"
          - "OpenNebula Systems"
          - 'target="_blank">OpenNebula'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - "href=\"css/app\\.min\\.css\\?v=([\\d\\.]+)\""
# digest: 490a0046304402202335efe0eb337111e2947671dd99d721ed12097d4a978b18f7333d1ceefe7229022003086de0d6f3a904d9cbc7e62d0a9c59bca8b1f9d5be4e3b8d26953b36fd8188:922c64590222798bb761d5b6d8e72950