Startec

Startec

Can you find the bug? JavaScript security vulnerabilities course

Mai 16, às 17:43

·

3 min de leitura

·

0 leituras

In a world where cybersecurity threats are more prevalent than ever, understanding how to safeguard your web applications is of paramount importance. We just published a course on the freeCodeCamp.org YouTube channel that will help you learn common JavaScript security vulnerabilities and how to prevent them. Brandon teaches this course.
Can you find the bug? JavaScript security vulnerabilities course
Can you find the bug? JavaScript security vulnerabilities course

In a world where cybersecurity threats are more prevalent than ever, understanding how to safeguard your web applications is of paramount importance.

We just published a course on the freeCodeCamp.org YouTube channel that will help you learn common JavaScript security vulnerabilities and how to prevent them.

Brandon teaches this course. He is an engineer at Semgrep and teaches at Carnegie Mellon University. Semgrep provided a grant that made this course possible.

This course centers around 10 examples, each illustrating a different type of vulnerability in web applications. The examples encompass a variety of languages and technologies, including JavaScript, MongoDB, and Docker, ensuring a broad understanding of potential security issues across different programming contexts.

To make it interesting and fun, the video is presented in a quiz format. You will see a small code snippet and be asked to find the vulnerabilities. Then you will learn about the vulnerabilities and how to fix them.

The course begins with an exploration of Cross-Site Scripting (XSS), a common vulnerability in JavaScript applications. It further delves into NoSQL injection attacks, a security risk associated with MongoDB databases. You will be taught how to prevent such attacks by ensuring only correct data types are accepted by the database.

Regular expression denial of service (ReDoS) attacks are also discussed, demonstrating how complex regular expressions can potentially lead to service disruption. The course illustrates how to prevent this by leveraging efficient libraries instead of creating intricate regular expressions.

The course then shifts focus to Docker and the potential security misconfigurations that can occur within Dockerfiles. You will learn the importance of not granting root privileges within Docker images to prevent disastrous consequences.

One of the critical lessons in this course is the dangers of hard-coded credentials within application code. The course shows the benefits of using environment variables to store sensitive data, which enhances security and makes it easier to manage secrets.

The course also tackles the issue of mass assignment attacks in JavaScript apps and provides a solution using careful object property assignment and password encryption.

Finally, the course concludes with an insight into host header injection attacks. You will learn to avoid using host headers from user requests, which can be manipulated to generate malicious URLs.

This comprehensive course is designed to provide developers with a solid understanding of common web application vulnerabilities and how to prevent them. By learning to identify these vulnerabilities and implement secure coding practices, participants will be better equipped to build robust and secure web applications.

Watch the full course on the freeCodeCamp.org YouTube channel (30 minute watch).



Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started


Continue lendo

DEV

Authentication system using Golang and Sveltekit - Dockerization and deployments
Introduction Having built out all the features of our application, preparing it for deployment is the next step so that everyone around the world will easily access it. We will deploy our apps (backend and...

Hoje, às 19:52

DEV

LEARN API AND ITS MOST POPULAR TYPE
An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate and interact with each other. It defines the methods, data structures, and...

Hoje, às 19:26

AI | Techcrunch

Investors take note: Wildfire smoke will spark a surge in East Coast climate tech startups
As smoke from Canadian wildfires has enveloped large swathes of the East Coast, millions of people have found themselves trapped inside, gazing out on orange skies and hazy cityscapes. The air quality index —...

Hoje, às 18:08

DEV

A Plain English Guide to Reverse-Engineering the Twitter Algorithm with LangChain, Activeloop, and DeepInfra
Imagine writing a piece of software that could understand, assist, and even generate code, similar to how a seasoned developer would. Well, that’s possible with LangChain. Leveraging advanced models such as...

Hoje, às 18:08

DEV

Finding Harmony in Marketing and UX
When we think of teamwork in the world of user experience (UX), we often imagine design and engineering working together. However, the idea of design and marketing working together is not as common. While...

Hoje, às 17:02

DEV

💡 Where to Find Inspiration for Building Your Next App
The first steps before turning your ideas into code. Whenever I’m trying to think of an idea to build a new application or website and I get stumped on what to do, there’s one phrase that always comes to...

Hoje, às 16:58

DEV

How to create 700+ SEO optimised pages for website in 1 h using Next.JS, OpenAI, Postgres
Small intro, I started learning coding couple of months before and since then experimenting with different small side projects. So this I show coding still looks for me:) What did I build this...

Hoje, às 16:37

DEV

Angular Project Mongodb database Connect | Angular Website Project | Angular App
Angular Project Mongodb database Connect | Angular Website Project | Angular App - YouTube ​ @softwaretechit Download Our App:- https://blog.softwaretechit.com/p/download.htmlWhat will we Learn In This...

Hoje, às 16:10

AI | Techcrunch

Meta warned it faces 'heavy sanctions' in EU if it fails to fix child protection issues on Instagram
The European Union has fired a blunt warning at Meta, saying it must quickly clean up its act on child protection or face the risk of “heavy sanctions”. The warning follows a report by the Wall Street...

Hoje, às 16:03

DEV

Taking Control with PostgreSQL Functions: Closing the Gap to ORM Functionality
Unveiling the Disparity: Understanding the Divide Between Direct Driver and ORM Functionality When it comes to choosing the technologies for developing a backend and manipulating data in a database like...

Hoje, às 16:02