id: nuxtjs-config-file

info:
  name: Nuxtjs Config File - File Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Nuxtjs Config file is exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"nuxt.config.ts"
  tags: exposure,files,nuxtjs

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'export default {'
          - 'buildModules: ['
        condition: and
        case-insensitive: true

      - type: word
        part: content_type
        words:
          - 'application/javascript'
# digest: 4a0a00473045022100d4594c50bd18e1842ccd557c7172cd8568d731a59d175bee99ff2b01c5e6b72302204f5bd0848129afbf78a0c0c9a1eb8b2ec14a4cab3297914bebd28f4101102132:922c64590222798bb761d5b6d8e72950