Syllabus

  1. 01SQL and NodeWhat SQL and a database table are, and how an Express route running on Node sends queries to SQLite through a driver, with the two ways a value can get into a query.1 lesson
    1. 01SQL in a Node App
  2. 02SQL InjectionHow string-built queries hand control of the SQL to the visitor, and how to fix them: bound parameters, allow-lists for the parts that cannot be bound, least privilege and quiet error messages.3 lessons
    1. 01When Input Becomes SQL
    2. 02Bind Values, Don't Build Them
    3. 03Identifiers, Privileges and Error Messages
  3. 03Project: Audit the RoutesRun a small Express and SQLite route set that builds its queries from strings, probe each route, then compare with a fixed version that binds values and limits what the database connection can do.1 lesson
    1. 01Project: Audit the League's Routes