id: protractor-config

info:
  name: Protractor Configuration Exposure
  author: DhiyaneshDK
  severity: low
  description: |
    Protractor configuration file was detected.
  reference:
    - https://www.protractortest.org/#/api-overview
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"protractor.conf.js"
  tags: devops,exposure,protractor,config

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'exports.config'
          - 'capabilities:'
        condition: and

      - type: word
        part: header
        words:
          - "application/javascript"

      - type: status
        status:
          - 200
# digest: 490a0046304402201eb2f90eea7a1db84f47b94b47c504c753a596ddf8b587b37a09eb0fd6d7b4f00220644b287231b56bc03b998d8597f41a3ace8e046890b8ac8142c141e9fea091c7:922c64590222798bb761d5b6d8e72950