
OWASP Top 10
One of the flagship projects for the Open Web Application Security Project (OWASP.org) is its top ten list. This list has been published about every three years since 2003. There have been some realignment of what it was a list of through the years, but in terms of the risks that applications commonly have, it is largely unchanged.
The latest list is from 2017. As we cover the list in subsequent topics, where possible, we will explore the vulnerability from the attackers point of view, examine the code flaw, and mitigate the risk with countermeasures. Some of the items can be caused by a number of different code flaws or might not be specifically code related.
You will need Visual Studio 2019 with the ASP.Net web development workload installed on your system to participate in labs. Even if you already have VS installed, please take a look at the video for important information about how we will be using it in the class.
Progress Report
How have we, as an industry, been doing in getting those applications buttoned up?
Let's take a look at the Verizon Data Breach Investigation Report
Tour the vulnerable Acme Bank web app to see security flaws and how to fix them, using the Agni Lib and Acme Web project with login, transfers, and bill pay.
Expose how injection flaws allow attackers to manipulate databases by feeding untrusted data, and counter them with input validation, parameterized queries, and object-relational mappers like Entity Framework.
Broken Authentication
Acme Bank has homegrown authentication, which is flawed in several places. Check out the lecture, then on to a hands-on lab!
Broken Authentication
Acme Bank has homegrown authentication, which is flawed in several places.
Modify the bank service and account controller to authenticate by email via the identity service, replacing user id and eliminating session reliance.
Hands-On Lab
Mitigation Part 3 - Testing
In this final part to the lab, we will make a change to the Identity scaffolding to redirect to /Account by default and verify that hackers cannot access privileged functions without authentication.
Check out the video below for a demonstration.
Guard web services against XML external entities (XXE) vulnerabilities by disabling DOCTYPE processing, validating inputs with XML schema, and upgrading processors to prevent exploitation and denial of service.
Sensitive Data Exposure
Check out the video below for details on this vulnerability.
Learn to identify and mitigate security misconfiguration by preventing information leakage from error messages, ensuring consistent responses, updating components, and enforcing centralized exception handling for secure deployments.
Identify how broken access control enables attackers to bypass permissions via insecure direct object references and manipulated URLs, and learn how explicit authorization and indirect references prevent these exploits.
Obscure direct account references with an access reference map, store it as JSON in the session, and bind it to views to prevent broken access control.
Learn how cross site scripting injects scripts into browsers through unvalidated data, and the conditions that enable stored or reflected XSS. Discover robust encoding and validation techniques to prevent it.
Mitigate cross-site scripting by encoding all output and validating input. Leverage Razor encoding, model validation with data annotations, and enable client-side validation via jQuery validation and unobtrusive scripts.
Protect against insecure deserialization by avoiding serialization from untrusted sources, signing serialized objects, and validating types in dot net to prevent remote code execution.
Identify and monitor vulnerabilities in third-party components and their transitive dependencies. Patch quickly by using automated scans and tools like dependency check against the NVD, and keep components current.
Emphasizes building robust logging and monitoring to provide forensic data for breach detection, using App Sensor to enable real-time detection and response.
Reimagine the Agami bank application with test driven development, defensive coding, and design patterns to bake security in from the start.
Reframe the object model by renaming user to customer and linking accounts and transactions with collections, replacing integers with enumerations and adding validation for Entity Framework through unit tests.
Adopt defensive coding by validating input parameters and object state at the start of each method, enabling fail-fast behavior and fewer debugging cycles. Shields applications by reducing attack vectors.
Discover how entity framework, a dot net object-relational mapper, maps to tables, views, and stored procedures, uses lazy loading and caching, and supports code-first migrations.
Examine how design patterns appear in a banking app, using dependency injection, a non static bank service, and the Acme Bank context to delegate to customer and account components.
Web applications are under constant attack, and developers are expected to understand how to identify, prevent, and mitigate the most common vulnerabilities. This course teaches you how to secure ASP.NET and ASP.NET Core applications using industry‑standard practices and the OWASP Top 10, the globally recognized benchmark for web application security.
You’ll learn how real‑world attacks work, how to exploit vulnerable code in a safe environment, and—most importantly—how to fix those vulnerabilities using secure coding techniques. Through hands‑on labs, practical examples, and clear explanations, you’ll build the skills needed to design and develop applications that are secure by default.
This course has been delivered to thousands of developers worldwide, including teams at major corporations, government agencies, and the military. Microsoft uses Chuck’s courses internally to train their own developers, and the curriculum has evolved over two decades to reflect today’s modern security challenges.
Whether you’re a beginner developer or an experienced engineer looking to strengthen your security mindset, this course will help you understand the risks, avoid common mistakes, and build safer, more resilient ASP.NET applications.
What You’ll Learn
Understand and mitigate the OWASP Top 10 vulnerabilities
Prevent SQL Injection, XPath Injection, and command injection
Implement secure authentication and authorization using Identity
Protect applications from XSS, CSRF, XXE, and broken access control
Avoid insecure deserialization and unsafe component usage
Apply secure‑by‑default design principles in ASP.NET Core
Strengthen logging, monitoring, and error‑handling practices
Build secure business‑tier logic and validate user input effectively
(All rewritten from your original bullet list, but clearer and more SEO‑friendly.)
Why This Course Stands Out
Taught by an instructor whose courses are used by Microsoft to train developers
Hands‑on labs with real code, real vulnerabilities, and real fixes
Updated for modern ASP.NET Core and current OWASP guidance
Designed for developers who want practical, actionable skills—not theory
Who This Course Is For
ASP.NET and ASP.NET Core developers
Software engineers who want to build secure applications
Students preparing for cybersecurity or secure‑coding roles
Teams adopting secure‑by‑design development practices
Anyone responsible for reducing risk in web applications