Exposed Files
appsettings.json & secrets.json: the .NET secrets you did not mean to ship
In .NET apps, configuration lives in JSON files that can hold connection strings and keys. When one ends up in a public path, it is a plain URL away.
Tag
In .NET apps, configuration lives in JSON files that can hold connection strings and keys. When one ends up in a public path, it is a plain URL away.
Source maps make minified code debuggable by mapping it back to the original. Ship them to production and you have effectively published your source code.
If /.git is reachable on your site, an attacker can rebuild your whole repository — code, history and any secrets you ever committed. Here is how to check.
The .env file holds your database URLs, API keys and tokens. It belongs on the server — but when it ships to a public folder, anyone can just download it.