Tag: mysql

Preventing Stored XSS Attacks in Node.js: Best Practices and Countermeasures

Introduction A stored XSS (Cross-Site Scripting) attack in a Node.js application occurs when user-supplied input containing malicious scripts or HTML code is stored on the server and later displayed to other users without proper sanitization or validation. This can lead to the execution of the injected scripts on other users’ browsers, potentially compromising their accounts

Read more

How to use MySQL in Node.js

Introduction MySQL is a popular open-source relational database management system (RDBMS) that uses Structured Query Language (SQL) for managing and manipulating data. It is one of the most widely used databases in the world, with applications ranging from small-scale web applications to large-scale enterprise systems. MySQL was first released in 1995 by MySQL AB (later

Read more

Building a Node.js Application with MySQL: A Practical Example

Introduction In this tutorial, we will walk through the process of building a Node.js application that interacts with a MySQL database. We will cover the steps from setting up the project to performing operations on the database using the popular mysql package. By the end of this tutorial, you will have a solid understanding of

Read more

Sequelize ORM in Nodejs

Introduction: If you’re a Nodejs developer and you want to use an Object Relational Mapping (ORM) tool to connect your Nodejs applications to a database, then look no further than the Sequelize library. Sequelize is an ORM for Nodejs applications that provides access to MySQL, Postgres, and SQLite databases. It makes it easy to interact

Read more

How to do SQL injection attack in Node.js

Introduction SQL injection is a common security vulnerability in web applications that allow an attacker to execute malicious SQL queries by manipulating user input. To demonstrate an SQL injection vulnerability in a Node.js application, we can use the following example: Suppose we have a simple Node.js application that retrieves user data from a MySQL database

Read more

Please disable your adblocker or whitelist this site!

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site