id: rustfs-detect

info:
  name: Rustfs - Detect
  author: icarot
  severity: info
  description: |
    Detects a Rustfs server, a high-performance, distributed object storage system built in Rust.
  reference:
    - https://github.com/rustfs/rustfs
  classification:
    cpe: cpe:2.3:a:rustfs:rustfs:*:*:*:*:*:rust:*:*
  metadata:
    vendor: rustfs
    product: rustfs
    shodan-query: title:"RustFS"
  tags: tech,rustfs,rustfs,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/rustfs/console/auth/login"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<title>RustFS</title>'
          - 'title":"RustFS'
          - '/rustfs/console/_nuxt'
        condition: or

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