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.
couchdb-generate-session-id
Advanced tools
generates valid CouchDB session IDs using username, salt, secret & timestamp
generates valid CouchDB session IDs using username, salt, secret & timestamp
var generateSessionId = require('couchdb-generate-session-id')
var sessionId = generateSessionId(
'pat',
'24eb90e9e1343977b8323857287ffca4',
'78875068a1979fb910d5d8f37d316aa4',
1449689785
)
Argument | Type | Description |
---|---|---|
username | String | name property of \_users doc |
usersalt | String | salt property of \_users doc |
serversecret | String | couch_httpd_auth.secret of CouchDB configuration |
timestamp | Number | Number of seconds elapsed since 1 January 1970 00:00:00 UTC |
make_cookie_hash(UserName, Secret, TimeStamp) ->
SessionData = UserName ++ ":" ++ erlang:integer_to_list(TimeStamp, 16),
Hash = crypto:sha_mac(Secret, SessionData),
couch_util:encodeBase64Url(SessionData ++ ":" ++ ?b2l(Hash)).
All credits due to @christophwitzko, @indutny & @janl: https://gist.github.com/janl/4583f5eb4c0d8216cc5f
FAQs
generates valid CouchDB session IDs using username, salt, secret & timestamp
The npm package couchdb-generate-session-id receives a total of 0 weekly downloads. As such, couchdb-generate-session-id popularity was classified as not popular.
We found that couchdb-generate-session-id 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.