Merge pull request #7230 from j4vaovo/patch-37

Create config-properties-exposure
patch-1
Dhiyaneshwaran 2023-05-17 01:39:57 +05:30 committed by GitHub
commit 7e3a413c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
id: config-properties
info:
name: Config Properties Exposure
author: j4vaovo,DhiyaneshDK
severity: high
reference:
- https://twitter.com/win3zz/status/1657624974851702784/photo/1
metadata:
verified: "true"
max-request: 3
tags: exposure,config,properties
http:
- method: GET
path:
- "{{BaseURL}}/config.properties"
- "{{BaseURL}}/config.properties.bak"
- "{{BaseURL}}/ui_config.properties"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- 'jdbc:[a-z:]+://[A-Za-z0-9\.\-_:;=/@?,&]+'
- '((?i)password|pwd|pass|secretkey)='
condition: or
- type: word
part: header
words:
- "text/plain"
- "bytes"
condition: or
- type: word
part: header
words:
- "text/html"
negative: true
- type: status
status:
- 200