~/talk

Building Secure ASP.NET Core MVC Applications

Talkat AppSec USA 2017 · 2017-09-19..09-22· [security, dotnet]
slides:none on file

Shows that ASP.NET Core MVC defaults reduce common mistakes but require explicit fixes: controllers are convention‑discovered, model binding enables overposting unless view models or Bind whitelists are used, and POST actions need ValidateAntiForgeryToken (or a global filter) to prevent CSRF. Returning text/html still allows reflective XSS so use the built‑in HTML/JS encoders or Razor (avoid Html.Raw). Demonstrates adding SameSite cookies via cookie policy in 2.0 and using Roslyn analyzers to flag missing ModelState checks and antiforgery attributes; demo code is on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33ASPNET Core
  3. 3:52ModelViewController
  4. 4:24Starting a New Project
  5. 5:49Controllers
  6. 8:04Advanced Controller
  7. 12:30Data Processing
  8. 15:10Data Assignment
  9. 18:01Content Result
  10. 20:48Input Validation
  11. 21:52SameSide Cookies
  12. 24:54Using SameSide Cookies
  13. 26:46Code Analysis
  14. 27:37Limitations
  15. 29:23Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.