Create appsettings-file-disclosure.yaml

patch-1
Dhiyaneshwaran 2022-06-04 20:40:24 +01:00 committed by GitHub
parent 41a73021e9
commit 5266e5807a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
id: appsettings-file-disclosure
info:
name: Application Setting file disclosure
author: DhiyaneshDK, tess
severity: high
description: appsetting.json file discloses the DB connection strings containing sensitive information.
reference: https://twitter.com/hacker_/status/1518003548855930882?s=20&t=BVauK0yUjVl5yL7rwy0Eag
tags: exposure
requests:
- method: GET
path:
- "{{BaseURL}}/appsettings.json"
matchers-condition: and
matchers:
- type: word
words:
- "ConnectionStrings"
condition: and
- type: word
words:
- "application/json"
part: header
- type: status
status:
- 200