nuclei-templates/exposures/configs/javascript-env.yaml

55 lines
1.2 KiB
YAML

id: javascript-env
info:
name: JavaScript Environment Configuration - Detect
author: pdp,geeknik
severity: low
description: Multiple common JavaScript environment configuration files were detected.
tags: javascript,config,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/env.js"
- "{{BaseURL}}/env.development.js"
- "{{BaseURL}}/env.production.js"
- "{{BaseURL}}/env.test.js"
- "{{BaseURL}}/env.dev.js"
- "{{BaseURL}}/env.prod.js"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: dsl
dsl:
- "contains(tolower(all_headers), 'content-type: application/javascript')"
- type: word
part: body
words:
- "module.exports"
- "const audience"
- "const domain"
- "NODE_ENV"
- "LOG_LEVEL"
- "TOKEN"
- "KEY"
- "PASSWORD"
- "VERSION"
condition: or
- type: word
part: body
words:
- "Bootstrap"
- "jQuery"
- "CSS TRANSITION SUPPORT"
condition: or
negative: true
# Enhanced by md on 2023/02/09