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,vuln

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: 4a0a004730450221008e94b778977264189ce9826843d30bcf2d9004fd9b64f76f93ed132cbaed2963022024bcb9ef80bbd11cdfa085ec170560a0d2fe7866381db78a46579303ed313348:922c64590222798bb761d5b6d8e72950