id: karma-config-js

info:
  name: Karma Configuration File - Detect
  author: DhiyaneshDk
  severity: medium
  description: Karma configuration file was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"karma.conf.js"
  tags: config,exposure,devops

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "// Karma configuration"
          - "module.exports"
        condition: and

      - type: status
        status:
          - 200

# digest: 4b0a00483046022100abee8fe5c16b2b26dda47afc53abf309a0c3f473c02a6dede19b2cd494fd44e602210082f30149cbe44d521fcbfa458590421e2c3efd74434fea6b635be84a3c67d372:922c64590222798bb761d5b6d8e72950
