New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

express-sql-injection

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-sql-injection

This express module detects sql injection attacks and stops them with 403 http status code.

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
17
240%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

sql-injection

This express module detects sql injection attacks and stops them by sending 403 as response. The module checks the query string, route params, and body for any sql injection related content.

var app = express();
var sqlinjection = require('sql-injection');
app.use(sqlinjection);

Installation

$ npm install sql-injection

Usage

code example:

var express = require('express');
var sqlinjection = require('sql-injection');

var app = express();

app.configure(function() {
    app.use(sqlinjection);  // add sql-injection middleware here
});

app.get('/route1', function(req, res) {
    res.send(200, {});
});
app.get('/route2/:uid', function(req, res) {
    res.send(200, {});
});
app.post('/route3', function(req, res) {
    res.send(200, {});
});
app.listen(3000);

Keywords

sql

FAQs

Package last updated on 11 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts