Fixing information exposure through an error message
Logs can help determine events that are occurring inside an app. Application traces, debugging information, errors, warnings, and other information are also available and are written in logs. Unfortunately, sensitive data can also be carelessly logged in ASP.NET Core web applications, and inadvertent disclosure poses a risk.
In this recipe, we are going to change the misconfigured log provider properties to prevent logging information that is too sensitive to be stored in logs.
Getting ready
We will use the Online Banking app we used in the previous recipe. Using Visual Studio Code, open the sample Online Banking app folder at \Chapter07\information-exposure1\before\OnlineBankingApp\
.
You can perform the steps in this folder to fix information exposure through an error message recipe.
How to do it…
Let's take a look at the steps for this recipe:
- From the starting exercise folder, launch Visual...