Skip to content
JS

Web Security Essentials: MITM, CSRF, and XSS

Course on egghead by Mike Sherov

View on egghead (opens in a new tab)
51 min
LengthVideo runtime
Subscription
Price modelegghead plan
17
Lessons
4.8
Rating out of 517 ratings on egghead
Feb 2020
Published18 Feb 2020

About this course

Description from egghead

As developers, we have a responsibility to protect the data our users trust us with. No one wants to wake up to the news that their site was hacked and all of the user accounts stolen. Security is important, yet it is often overlooked and forgotten. Part of the reason for this is that security seems hard to get right. This results in developers crossing their fingers and hoping for the best. In this course, you'll learn how to protect your application by learning how to attack it. Start your journey into web security today! Check out these community notes for this course on Github .

What it covers

17 lessons
  1. 1Course Overview: Web Security Essentials
  2. 2Simulate Man in the Middle Attacks and Inspect Network Traffic with Charles Proxy
  3. 3Add https to a Localhost Express App to Prevent MITM Attacks
  4. 4Redirect All HTTP Traffic to HTTPS in Express to Ensure All Responses are Secure
  5. 5Set the Secure Cookie Flag to Ensure Cookies are Only Sent Over Secure Connections
  6. 6Add HSTS Headers to Express Apps to Ensure All Requests are https Requests
  7. 7Create a Proof of Concept Exploit of a CSRF Vulnerable Website
  8. 8Mitigate CSRF Attacks by Setting the SameSite Cookie Flag in Express
  9. 9Add CSRF Token Middleware to an Express Server to Mitigate CSRF
  10. 10Make an XSS Payload to Read a Cookie from a Vulnerable Website
  11. 11Set the httpOnly Cookie Flag in Express to Ensure Cookies are Inaccessible from JavaScript
  12. 12Make an XSS Payload to Read document.body from a Vulnerable Website
  13. 13Prevent Inline Script Execution by Implementing Script-Src CSP Headers in Express
  14. 14Read Document Content from a Vulnerable Website via Script Tag Injection in an XSS Payload
  15. 15Add a Nonce Based script-src Header in Express to Only Allow Scripts that Match the Nonce
  16. 16Prompt Users for Credentials from a Vulnerable Website via iframe Injection
  17. 17Add a default-src CSP Header in Express to Enforce an Allowlist and Mitigate XSS

Similar web security courses

  1. Intermediate1 h
    Codecademy3Feb 2023
  2. Beginner1 h 10 minSubscription
    Educative18Apr 2026
  3. SSH for Remote Server Authentication

    egghead · Mark Shust · 10 lessons · 5.0 from 4 ratings · Apr 2019

    18 minSubscription
    egghead105.0 (4)Apr 2019
  4. Intermediate1 h 30 min
    CourseraApr 2020
  5. Secure Authentication for Web Apps & APIs Using JWTs

    Master.dev · Ryan Chenkie, Lukas Ruebbelke · 29 lessons · Mar 2017

    3 h 22 minSubscription
    Master.dev29Mar 2017
  6. Secure Coding: SSDLC, OWASP & SonarQube Essentials

    Coursera · Shikhar Verma, Starweaver · Aug 2025

    Intermediate3 h 40 min
    CourseraAug 2025
  7. Web Security, v2

    Master.dev · Steve Kinney · 34 lessons · Aug 2024

    4 h 29 minSubscription
    Master.dev34Aug 2024
  8. Intermediate5 hSubscription
    Educative28Jun 2026

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare