Resources
C# example applications
Two ASP.NET Core applications. Before you start, see Before you start.
- What it is: Damn Vulnerable C# Application, an ASP.NET Core API.
- Source: github.com/codeFather2/dvcsa
- Expect to find: cross-site scripting, SQL injection and leaked passwords.
- Login: none.
git clone https://github.com/codeFather2/dvcsa.gitcd dvcsa
# Start the applicationdocker compose up -d
# Create an API application, build its specification from the code, and scannightvision target create dvcsa http://localhost:8999 --type apinightvision openapi extract . --target dvcsa --lang csharpnightvision scan dvcsaThe repository’s check-endpoint.sh script shows the vulnerabilities by hand.
Vulnerable Core App
Section titled “Vulnerable Core App”- What it is: a vulnerable ASP.NET Core web application.
- Source: github.com/vulnerable-apps/VulnerableCoreApp
- Expect to find: cross-site scripting.
- Login: none.
git clone https://github.com/vulnerable-apps/VulnerableCoreAppcd VulnerableCoreApp
# Start the applicationdocker compose up -d
# Create a web application and scannightvision target create vulnerable-core-app http://localhost:5000 --type webnightvision scan vulnerable-core-appFor the frameworks Source intelligence reads in C#, see C# frameworks.