id: stestr-config

info:
  name: Stestr Configuration File - Detect
  author: Hardik-Solanki
  severity: info
  description: Stestr configuration file was detected.
  reference:
    - https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
    - https://stestr.readthedocs.io/en/latest/MANUAL.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:
    verified: true
    max-request: 1
    github-query: filename:stestr.conf
  tags: exposure,stestr,config,files

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '[DEFAULT]'
          - 'test_path='
        condition: and

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