id: opensearch-dashboard-unauth

info:
  name: OpenSearch Dashboard - Unauth Access
  author: ritikchaddha
  severity: high
  description: |
    OpenSearch Dashboard is a visualization and management tool for OpenSearch. This template detects instances that are accessible without authentication, potentially exposing sensitive data and system information.
  reference:
    - https://opensearch.org/docs/latest/dashboards/index/
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"OpenSearch"
    fofa-query: title="OpenSearch"
  tags: opensearch,dashboard,misconfig,unauth,vuln

http:
  - raw:
      - |
        GET /app/home#/ HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/ui/fonts/source_sans_3/SourceSans3"
          - "font-family: 'Source Code Pro"
          - "OpenSearch"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e5d06b489495400964a04adc00273a09ffeed9f51e8e9c2bd76ac821cead213b022100a22088661151d2c6ad9d7fabd4bb3f13d70e19a641cf4fb5151b91978a334f10:922c64590222798bb761d5b6d8e72950