id: meshery-detect

info:
  name: Meshery - Detect
  author: righettod
  severity: info
  description: |
    Meshery is a open source, cloud native manager that enables the design and management of all Kubernetes-based infrastructure and applications (multi-cloud).
  reference:
    - https://github.com/meshery/meshery
    - https://meshery.io/
  metadata:
    verified: true
    max-request: 1
    vendor: meshery
    product: meshery
    shodan-query: http.title:"Meshery"
    fofa-query: title="Meshery"
  tags: tech,meshery,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/providers"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(to_lower(body), "persist-meshery-", "ismesheryuirestricted")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)"package_version":\s*"([a-z0-9.]+)"'
# digest: 4a0a00473045022014bae360cc9764564300b0c24754cd495d5ded43da6da26e03a4b86d608dd66c022100f5882a6bec2658790be4785ef2da91a6784177dec66080ccce0f5cd188cb9fe2:922c64590222798bb761d5b6d8e72950