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
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 2
|
2022-10-13 10:12:07 +00:00
|
|
|
tags: exposure,files
|
2022-06-04 19:40:24 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-06-04 19:40:24 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/appsettings.json"
|
2023-01-05 16:22:07 +00:00
|
|
|
- "{{BaseURL}}/appsettings.Production.json"
|
2022-06-04 19:40:24 +00:00
|
|
|
|
2023-01-05 16:23:37 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-06-04 19:40:24 +00:00
|
|
|
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
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502200ab0a99b7f2a8e0bd193d05bfb9729dd541336eed01eb74041387c3d11c5cd1b022100ceeb9d3c0ca44313f67af0375112f915400c298b3b4e1942f3cce2fef6954809:922c64590222798bb761d5b6d8e72950
|