Changelog Master Feed cover image

Changelog Master Feed

Web dev security school (JS Party #293)

Sep 21, 2023
Guest Ron Perris, Security Engineer at Reddit, discusses best practices and common pitfalls in web dev security. Topics covered include dangerous URLs, JSON injection attacks, React security, and securing front-end application code. The episode provides educational insights for developers to enhance their security practices.
01:26:47

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • Front-end security: Use contextual output encoding and validate dangerous URLs to prevent cross-site scripting attacks.
  • Server-side security: Follow secure coding practices, implement input validation, and employ secure coding libraries to mitigate common vulnerabilities.

Deep dives

Front-end Security Best Practices

When it comes to front-end security, it is important to default to using cross-site scripting protection when doing data binding. This means applying contextual output encoding to prevent attacker-controlled content from being executed as scripts on the page. It is also crucial to watch out for dangerous URLs and URL-based script injection. When accepting user-provided URLs, ensure they are validated and correctly used in attribute or content contexts to prevent cross-site scripting attacks. Additionally, be aware of the risks of server-side request forgery and use tools or libraries that handle URL validation and protection against DNS rebinding attacks.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner