id: rollup-js-config

info:
  name: Rollup.js Configuration - Detect
  author: DhiyaneshDK
  severity: info
  description: Rollup configuration was detected.
  reference:
    - https://rollup.docschina.org/guide/en/#configuration-files
  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
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"rollup.config.js"
  tags: exposure,devops,cicd,rollupjs

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'export default ['
          - 'input:'
        condition: and

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