id: samba-config

info:
  name: Samba Config - Detect
  author: sheikhrishad
  severity: info
  description: Samba configuration information was detected.
  reference: https://www.samba.org/samba/docs/using_samba/ch06.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: config,exposure,smb,samba

http:
  - method: GET
    path:
      - "{{BaseURL}}/smb.conf"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "configuration file"
          - "samba"
        condition: and

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