Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Scraptcha provides a method of user validation (not a bot) for submission forms.
Scraptcha provides a method of user validation for submission forms.
var express = require('express');
var scraptcha = require('scraptcha');
// Scraptcha images source information.
var imageInformation = {path: __dirname + "/images/green/",
filePrefix: "i_cha_",
fileExtension: ".gif"};
// Initialize the Scraptcha data.
scraptcha.initialize(imageInformation);
// Static file server.
var server = new express();
server.use(express.static(__dirname));
server.listen(8800);
console.log("Server is listening on http://localhost:8800");
// Gets the scratcha code sequence. The "id" compensates for a browser update restriction.
server.get('/scraptcha/:id', function (req, res) {
res.send(scraptcha.getHTMLSnippet());
});
// Returns validation response.
server.get('/scraptchaValidate/:data', function (req, res) {
res.send(scraptcha.verify(req));
});
$ npm install scraptcha
Reference files are located in the 'test' folder. Start the example server by navigating to the ./node_modules/scraptcha directory from the command prompt and perform the command "npm start" or "node ./test/file-server.js".
See the 'submit: function(){...}' in the 'main.js' file for end user form adaptation.
Use your own image base by creating a image cache and then edit 'imageInformation{...}' from the above example. Update 'scraptchaCode[...]' in the package 'index.js' file if the code sequence is different.
FAQs
Scraptcha provides a method of user validation (not a bot) for submission forms.
The npm package scraptcha receives a total of 0 weekly downloads. As such, scraptcha popularity was classified as not popular.
We found that scraptcha 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.