id: exposed-redis

info:
  name: Redis Server - Unauthenticated Access
  author: pdteam
  severity: high
  description: Redis server without any required authentication was discovered.
  reference:
    - https://redis.io/topics/security
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-306
  metadata:
    max-request: 2
  tags: network,redis,unauth,exposure,tcp,discovery

tcp:
  - inputs:
      - data: "info\r\nquit\r\n"

    host:
      - "{{Hostname}}"
      - "tls://{{Hostname}}"
    port: 6379,6380
    read-size: 2048

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "redis_version"
      - type: word
        negative: true
        words:
          - "redis_mode:sentinel"
# digest: 490a0046304402205117329cd2548b50010b2f470d99168fc0d5d6cffa361cab1ac56df4e5c864bd02201554237c2521e4ec9209b947f1ccc510af0de65a90f8717ee6c01bc0082caabe:922c64590222798bb761d5b6d8e72950