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.
temporary-email-address-validator
Advanced tools
Temporary / Disposable Email Address Validator for Node.JS
As a owner or web master you wouldn’t really want someone anonymously utilizing your website or campaign benefits. So You really want to prevent using temporary email addresses on website. So this Node Module was created in an attempt to make a collection of disposable email addresses and validate signups against with the list of temporary email providers.
Install the node package : npm i temporary-email-address-validator
var express = require('express');
var bodyParser = require('body-parser');
var disposableEmail = require('temporary-email-address-validator');
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.get('/', function(req, res){
var html = '<form action="/" method="post">' +
'Enter your name:' +
'<input type="email" name="EmailAddress" placeholder="..." />' +
'<br>' +
'<button type="submit">Check</button>' +
'</form>';
res.send(html);
});
app.post('/', function(req, res){
var EmailAddress = req.body.EmailAddress;
var result = disposableEmail.validate(EmailAddress), result_text ="OK";
if (!result){
result_text = "Alert!!";
}
var html = 'Email: ' + EmailAddress + ': '+result_text+'<br>' +
'<a href="/">Try again.</a>';
res.send(html);
});
app.listen(3000);
Run with node app.js
#Documentation Temporary Email Address Validator
FAQs
Temporary / Disposable Email Address Validator for Node.JS
The npm package temporary-email-address-validator receives a total of 3 weekly downloads. As such, temporary-email-address-validator popularity was classified as not popular.
We found that temporary-email-address-validator 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.