2022-07-13 10:03:38 +00:00
|
|
|
id: credentials-json
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Credentials File Disclosure
|
|
|
|
author: ritikchaddha
|
|
|
|
severity: medium
|
|
|
|
metadata:
|
|
|
|
verified: true
|
|
|
|
google-query: intitle:"index of" "credentials.json"
|
|
|
|
tags: google,secret,exposure
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/credentials.json"
|
|
|
|
- "{{BaseURL}}/assets/credentials.json"
|
|
|
|
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
2022-07-13 10:09:22 +00:00
|
|
|
- '"client_secret":'
|
|
|
|
- '"client_id":'
|
2022-07-13 10:03:38 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|