id: salesforce-credentials

info:
  name: Salesforce Credentials - Detect
  author: geeknik
  severity: high
  description: Salesforce credentials information 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:
    max-request: 2
  tags: exposure,files,salesforce

http:
  - method: GET
    path:
      - '{{BaseURL}}/js/salesforce.js'
      - '{{BaseURL}}/salesforce.js'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'jsforce.Connection'
          - 'conn.login'
          - 'conn.query'
        condition: and

      - type: word
        part: header
        words:
          - "text/plain"

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