id: babel-config-exposure

info:
  name: Babel Configuration - Detect
  author: DhiyaneshDK
  severity: info
  description: Babel configuration information was detected.
  reference:
    - https://babeljs.io/docs/en/configuration
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
    cpe: cpe:2.3:a:pocoo:babel:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"babel.config.js"
    product: babel
    vendor: pocoo
  tags: exposure,config,file

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'module.exports = {'
          - 'presets: ['
        condition: and

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