liveBook · Manning

Vulnerability

As explained in .NET in Action, Second Edition

A vulnerability is a weakness in software, configuration, or architecture that can be exploited to compromise security.

A vulnerability is a weakness in software, configuration, or architecture that an attacker can exploit. In production applications, finding vulnerabilities starts with examining an existing system and its trust boundaries. section 9.1 section 9.2

Common vulnerability areas in a web application include:

  • JSON processing weaknesses and outdated dependencies. section 9.2
  • Data exposure or tampering across HTTP requests and responses. section 9.2
  • SQL injection, weak database access control, and elevation through impersonation. section 9.2
  • Weak authentication and web-service access control. section 9.2
Figure 9.1 A threat model for a web application hosted within a company’s network that accesses a database

A threat model connects a client, web service, and database, making trust-boundary crossings and their potential vulnerabilities visible. section 9.2

How .NET in Action, Second Edition covers it

How deep it goes
Maps components, connections, trust boundaries, and threat vectors, while stopping short of comprehensive security coverage.
Examples
Uses an ASP.NET Core catalog API, SQLite database, browser Swagger UI, HTTP traffic, and a company-network boundary.
What it assumes
Assumes an existing ASP.NET Core web API with EF Core, a database, services, and client connections.
What you can do after
Diagnose vulnerabilities by modeling trust boundaries, inspecting generated SQL, and applying .NET security tools and techniques.
How it connects
Connects threat modeling with trust boundaries, SQL injection, HTTPS, authentication, authorization, and web-service access control.

Also explained in

Compare how 16 books explain vulnerability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET in Action, Second Edition. The section links point to the parts of the book it draws on.