id: websheets-config

info:
  name: Websheets Configuration File - Detect
  author: geeknik
  severity: high
  description: Websheets configuration file was detected.
  reference:
    - https://github.com/daveagp/websheets
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
  tags: websheets,config,exposure,files

http:
  - method: GET
    path:
      - '{{BaseURL}}/ws-config.json'
      - '{{BaseURL}}/ws-config.example.json'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"db-password":'
          - '"db-database":'
        condition: and

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