Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Renders and checks the Civil Rights Captcha.
$ npm install crcaptcha
Requests a captcha form. The two languages currently supported are Swedish (sv) and English (en.)
Verify a captcha.
app.js:
var express = require("express")
, http = require("http")
, crc = require("../lib/crcaptcha");
var app = express();
app.configure(function(){
app.set("port", process.env.PORT || 3000);
app.set("views", __dirname + "/views");
app.set("view engine", "jade");
app.use(express.favicon());
app.use(express.logger("dev"));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
});
app.configure("development", function(){
app.use(express.errorHandler());
});
app.get("/", function(req, res) {
crc.show(function (err, html) {
if (err) {
console.log(err);
} else {
res.render("form", { captcha: html });
}
});
});
app.post("/", function (req, res) {
crc.check(req.body.crc_captcha, req.body.crc_sessid, function (err, success) {
if (err) {
console.log(err);
} else {
if (success) {
res.send("Right.");
} else {
res.send("Wrong.");
}
}
});
});
http.createServer(app).listen(app.get("port"), function(){
console.log("Express server listening on port " + app.get("port"));
});
views/form.jade:
!!! 5
html
head
script(src="http://code.jquery.com/jquery-latest.min.js", type="text/javascript")
body
form(method='POST', action='/')
!= captcha
input(type='submit', value='Check Civil Rights Captcha')
FAQs
Show and check the Civil Rights Captcha
The npm package crcaptcha receives a total of 0 weekly downloads. As such, crcaptcha popularity was classified as not popular.
We found that crcaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.