2021-06-30 10:17:58 +00:00
|
|
|
id: javascript-env
|
|
|
|
|
|
|
|
info:
|
2023-02-09 21:20:21 +00:00
|
|
|
name: JavaScript Environment Configuration - Detect
|
2022-03-20 22:06:28 +00:00
|
|
|
author: pdp,geeknik
|
2021-06-30 10:17:58 +00:00
|
|
|
severity: low
|
2023-02-09 21:20:21 +00:00
|
|
|
description: Multiple common JavaScript environment configuration files were detected.
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 6
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: javascript,config,exposure
|
2021-06-30 10:17:58 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-06-30 10:17:58 +00:00
|
|
|
- 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"
|
2021-06-30 12:23:27 +00:00
|
|
|
|
2021-06-30 10:17:58 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-06-30 12:23:27 +00:00
|
|
|
|
2021-06-30 13:59:26 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "contains(tolower(header), 'content-type: application/javascript')"
|
2021-06-30 12:23:27 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "module.exports"
|
|
|
|
- "const audience"
|
|
|
|
- "const domain"
|
2021-06-30 12:55:21 +00:00
|
|
|
- "NODE_ENV"
|
|
|
|
- "LOG_LEVEL"
|
|
|
|
- "TOKEN"
|
|
|
|
- "KEY"
|
|
|
|
- "PASSWORD"
|
|
|
|
- "VERSION"
|
2022-03-20 22:06:28 +00:00
|
|
|
condition: or
|
2022-03-21 00:51:06 +00:00
|
|
|
|
2022-03-20 22:06:28 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "Bootstrap"
|
|
|
|
- "jQuery"
|
|
|
|
- "CSS TRANSITION SUPPORT"
|
|
|
|
condition: or
|
2023-02-09 21:20:21 +00:00
|
|
|
negative: true
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100c66e0d26c9f5dacb3a779ea553725976bba992bb71b7a968aac70caa10290088022100b458316aee6b28e8e5f559a2c068007e9bff6ac925a5c7375d677ed449bdb4a7:922c64590222798bb761d5b6d8e72950
|