id: vite-config

info:
  name: Vite Configuration - File Exposure
  author: DhiyaneshDk
  severity: low
  description: |
    The vite.config.js file is used to customize the behavior of Vite and specify various settings for your project.
  reference:
    - https://vitejs.dev/config/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"vite.config.js"
  tags: devops,exposure,files,vite,config

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'export default defineConfig'
          - 'plugins:'
          - 'laravel'
        condition: and

      - type: status
        status:
          - 200

# digest: 490a0046304402201a4f1e5204546489a598a68e546b02b3ebf0ca34deafaa8aed705822f58c1a3202200ad204f238501659ce3e15cccb32ba76e1376f72d83057f48bbeef5a9589470e:922c64590222798bb761d5b6d8e72950
