Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
CSRF crumb generation and validation for hapi
Lead Maintainer: Marcus Stong
Crumb is used to diminish CSRF attacks using a random unique token that is validated on the server side.
Crumb may be used whenever you want to prevent malicious code to execute system commands, that are performed by HTTP requests. For example, if users are able to publish code on your website, malicious code added by a user could force every other user who opens the page, to load and execute code from a third party website e.g. via an HTML image tag. With Crumb implemented into your hapi.js application, you are able to verify requests with unique tokens and prevent the execution of malicious requests.
Crumb has been refactored to securely work with CORS, as OWASP recommends using CSRF protection with CORS.
It is highly discouraged to have a production servers cors.origin
setting set to "[*]" or "true" with Crumb as it will leak the crumb token to potentially malicious sites
The following options are available when registering the plugin
function (request, reply) {}
, which when provided, is called for every request. If the provided function returns true, validation and generation of crumb is skipped (defaults to false)Additionally, some configuration can be passed on a per-route basis
FAQs
CSRF crumb generation and validation plugin
The npm package crumb receives a total of 232 weekly downloads. As such, crumb popularity was classified as not popular.
We found that crumb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.