Skip to content
Open dashboard (opens in a new tab)

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.
Terminal window
git clone https://github.com/codeFather2/dvcsa.git
cd dvcsa
# Start the application
docker compose up -d
# Create an API application, build its specification from the code, and scan
nightvision target create dvcsa http://localhost:8999 --type api
nightvision openapi extract . --target dvcsa --lang csharp
nightvision scan dvcsa

The repository’s check-endpoint.sh script shows the vulnerabilities by hand.

Terminal window
git clone https://github.com/vulnerable-apps/VulnerableCoreApp
cd VulnerableCoreApp
# Start the application
docker compose up -d
# Create a web application and scan
nightvision target create vulnerable-core-app http://localhost:5000 --type web
nightvision scan vulnerable-core-app

For the frameworks Source intelligence reads in C#, see C# frameworks.