id: s3cmd-config

info:
  name: S3CMD Configuration - Detect
  author: Ice3man
  severity: info
  description: S3CMD configuration information was detected.
  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: amazon,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/s3cmd.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '[default]'
          - 'access_key'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220130c69987628525e33b21e103397e77c265a4386444694037827f520c3d571cd02204b2cc4d0c2a8ea209eb6abefc83a4802f1aeb60098524aa12a3ed869ae7d055c:922c64590222798bb761d5b6d8e72950