2022-06-04 19:40:24 +00:00
|
|
|
id: appsettings-file-disclosure
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Application Setting file disclosure
|
2022-06-05 09:58:09 +00:00
|
|
|
author: DhiyaneshDK,tess
|
2022-06-04 19:40:24 +00:00
|
|
|
severity: high
|
2022-06-05 09:58:09 +00:00
|
|
|
description: |
|
|
|
|
appsetting.json file discloses the DB connection strings containing sensitive information.
|
|
|
|
reference:
|
|
|
|
- https://twitter.com/hacker_/status/1518003548855930882?s=20&t=BVauK0yUjVl5yL7rwy0Eag
|
2022-06-05 10:04:07 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2022-10-13 10:12:07 +00:00
|
|
|
tags: exposure,files
|
2022-06-04 19:40:24 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/appsettings.json"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "ConnectionStrings"
|
|
|
|
|
|
|
|
- type: word
|
2022-06-05 09:58:09 +00:00
|
|
|
part: header
|
2022-06-04 19:40:24 +00:00
|
|
|
words:
|
|
|
|
- "application/json"
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|