Skip to content

Credentials File Disclosure

ID: credentials-json

Severity: medium

Author: ritikchaddha

Tags: google,secret,exposure,files

Internal secret file is exposed.

id: credentials-json
info:
name: Credentials File Disclosure
author: ritikchaddha
severity: medium
description: Internal secret file is exposed.
metadata:
verified: true
max-request: 2
google-query: intitle:"index of" "credentials.json"
tags: google,secret,exposure,files
http:
- method: GET
path:
- "{{BaseURL}}/credentials.json"
- "{{BaseURL}}/assets/credentials.json"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
words:
- '"client_secret":'
- '"client_id":'
condition: and
- type: status
status:
- 200
# digest: 4b0a00483046022100e5719d36840673ff8e830165c8f478fa633ad46d769d5c73a96dd85184ed891e022100b97e58bce5fadd053bbbe1e81491e897f1d3b7658f0b04ce4ca36e9639d61d21:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/files/credentials-json.yaml"

View on Github