Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
crude-ownuser
Advanced tools
A plugin for Crude enforcing own user policy on all routes.
Install the module using NPM
npm install crude-ownuser --save
The Crud Own User package applies policies to all CRUD OPs that ensure only records belonging to the current user are being read, edited or deleted.
var crude = require('crude');
var crudeOwnUser = require('crude-ownuser');
var userCrude = crude('/user', controller);
crudeOwnUser(userCrude, {
// Where to expect the User Data Object on the Express Request Object.
expressUdoAttribute: 'user',
// The attribute representing the User Id on the Express Request Object.
expressUdoIdAttribute: 'id',
// How the user id attribute is named on the model.
schemaUserId: 'userId',
});
The Crude Own User package will enforce the policy by augmenting the incoming query with the user id of the current client. If the client is not authenticated (no express UDO is found) then a Not Authenticated (401) error will be returned to the client.
Copyright (c) 2014 Thanasis Polychronakis. Licensed under the MIT license.
FAQs
A plugin for Crude enforcing own user policy on all routes.
The npm package crude-ownuser receives a total of 0 weekly downloads. As such, crude-ownuser popularity was classified as not popular.
We found that crude-ownuser 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.