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.
node-red-contrib-nr-ldapauth
Advanced tools
This node was made to authenticate POST web requests in Node-RED. Pass msg.payload.u
as the username and msg.payload.p
as the password to authenticate against an LDAP server. It will return msg.auth
as true
(successful) or false
(failure) and log failed attempts to the Node-RED log with requester's IP address. This node can be used for any authentication request but if msg.req.ip
is not defined it will be replaced with localhost
.
Server: Any domain controller. Use FQDN if using LDAPS.
Bind Username: cn=username,ou=Organizational Unit,DC=Domain,DC=com
Filter: (SAMAccountName={{username}})
Search Base: OU=Organizational Unit,DC=Domain,DC=com
If using LDAPS the certificate Subject Name cannot be blank. By default the Windows CA certificate templates leave this blank. Node.js does not allow the Subject Name to be blank and will give the error Hostname/IP doesn't match certificate's altnames: "Cert is empty"
To set the Subject Name open the certificates template Console, right click on the template, click Properties, open the Subject Name tab, and set the Subject name format to DNS name. Also set Include this information in alternate subject name to DNS. Next export the CA certificate. Run certsrv.msc, right click the domain, click Properties, on the general tab select the certificate and click View Certificate, click the Details tab, click Copy to File..., then save the .crt file to the Node-RED server. Once it's on the server convert it to a .pem file using the command:
openssl x509 -inform der -in cert.cer -out cert.pem
Test certs with this command:
openssl s_client -connect domain.controller:636 -ca cert.pem
FAQs
Authenticate against LDAP server
We found that node-red-contrib-nr-ldapauth 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.