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