id: sftp-deployment-config

info:
  name: Atom SFTP Configuration File - Detect
  author: geeknik
  severity: high
  description: |
    Atom SFTP deployment configuration file was detected. File contains server details and credentials.
  reference:
    - https://atom.io/packages/sftp-deployment
  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: 1
    github-query: filename:deployment-config.json sftp
  tags: sftp,atom,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/deployment-config.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"host":'
          - '"username":'
          - '"password":'
          - '"remotePath":'
        condition: and

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