DEV Community

Robertino
Robertino

Posted on • Originally published at auth0.com

Security and Web Development

How to deal with the most common security threats in web development.


The focus on security has never been more important than in the current times. In the IT world, it gains more relevance every day. But ensuring security is not just about system administrators. It must also be a developer's skill, especially if they are web developers.

Auth0 brings you a free ebook about security and web development. Learn more about it and why you should care about web development security.

The Web as a Development Platform

Today's Web is not the Web of the early '90s when it was invented. Originally, it was created primarily as a content management system, that is, a platform for sharing and linking static documents. The HTTP protocol and HTML language were sufficient to achieve these basic goals, and security concerns were mostly limited to controlling access to confidential documents.

The demand for interactivity led to the introduction of JavaScript and dynamic page generation technologies, both on the client and on the server sides. That has completely changed the primary use of the Web. It has evolved from a simple way to share and link documents to the backbone of the software and human connection. The old content management system platform has switched to become a development platform.

This paradigm change has brought benefits but also pitfalls. And it also brought a slew of new challenges, the most pressing of which is security.

Web Applications and Security

Web application security refers to the measures taken to protect a website or web application from external attacks that could result in data loss, denial of service, or privacy violation, among other things.
When you deploy a web application, it can be accessed by anyone. You can't make any assumptions about who will access it: authorized or unauthorized users, humans, or bots. By default, you should assume that your application is exposed to any security risk. But what are security risks?

Three key concepts should be clear to you when analyzing your application security:

  • Threats are incidents that can potentially harm your application. Think of them as external processes that your application must defend against.
  • Vulnerabilities are weaknesses in your application that attackers can exploit. They can depend on design flaws or bugs, not just in your code, but also in its dependencies. Deficiencies can also exist at the infrastructure level, such as insecure protocols or network issues.
  • Risks are the potential damage your application can suffer when a threat exploits a vulnerability. You can think of risks as the intersection of threats and vulnerabilities.

Understanding these concepts is fundamental for protecting your applications against attackers.

Consider threats as your enemy’s weapons and vulnerabilities as your weakness. You need to know both to face the battle and make decisions with a calculated risk. In other words, learning how security attacks work is the first pass to avoiding them.

Read more...

Top comments (0)