build-with-celo-hackathon icon indicating copy to clipboard operation
build-with-celo-hackathon copied to clipboard

Payslice protocol

Open narteysarso opened this issue 3 years ago • 2 comments

narteysarso avatar Oct 05 '22 17:10 narteysarso

Socket Security Pull Request Report

Dependency issues detected. If you merge this pull request, you will not be alerted to the instances of these issues again.

📜 Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
[email protected] (added) binding.gyp Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via [email protected], [email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected],Payslice_Protocol/hardhat/package.json via [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected],Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
[email protected] (added) install Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/package.json
[email protected] (added) install Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via [email protected], [email protected], [email protected]
@sanity/[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) postinstall Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/package.json via [email protected]
[email protected] (added) install Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected],Payslice_Protocol/hardhat/package.json via [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected]
[email protected] (added) install Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected],Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) postinstall Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) postinstall Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/package.json via [email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], [email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected], [email protected], @babel/[email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) postinstall Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @pmmmwh/[email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], @sanity/[email protected], [email protected]
[email protected] (added) install Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
[email protected] (added) install Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) install Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) postinstall Payslice_Protocol/examples/ecommerce/package.json,Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
🫣 Native code

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Package Location Source
[email protected] (added) binding.gyp Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via [email protected], [email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected],Payslice_Protocol/hardhat/package.json via [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected],Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) binding.gyp Payslice_Protocol/examples/ecommerce/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @ethersproject/[email protected], [email protected],Payslice_Protocol/hardhat/package.json via [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], [email protected]
😵‍💫 Bin script confusion

This package has multiple bin scripts with the same name. This can cause non-deterministic behavior when installing or could be a sign of a supply chain attack

Consider removing one of the conflicting packages. Packages should only export bin scripts with their name

Package Bin script Source
@react-native-community/[email protected] (added) react-native Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected], [email protected], [email protected]
[email protected] (added) react-native Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], @solana/[email protected], [email protected]
[email protected] (added) ansi-html Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], @pmmmwh/[email protected]
[email protected] (added) ansi-html Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], @sanity/[email protected], [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @pmmmwh/[email protected]
@ethereumjs/[email protected] (added) rlp Payslice_Protocol/examples/payment_gateway/package.json via @metamask/[email protected], @ethereumjs/[email protected]
@nomicfoundation/[email protected] (added) rlp Payslice_Protocol/hardhat/package.json via [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected]
[email protected] (added) rlp Payslice_Protocol/examples/ecommerce/package.json via [email protected],Payslice_Protocol/examples/payment_gateway/package.json via [email protected], @coinbase/[email protected], [email protected], [email protected], [email protected],Payslice_Protocol/hardhat/package.json via @nomicfoundation/[email protected], @nomicfoundation/[email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via @nomicfoundation/[email protected], @nomicfoundation/[email protected], [email protected]
[email protected] (added) jest Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected]
[email protected] (added) jest Payslice_Protocol/examples/payment_gateway/package.json via [email protected]
[email protected] (added) jest Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected]
[email protected] (added) jest Payslice_Protocol/examples/payment_gateway/package.json via [email protected], [email protected]
🦀 Bin script shell injection

This package re-exports a well known shell command via an npm bin script. This is possibly a supply chain attack

Packages should not export bin scripts which conflict with well known shell commands

Package Bin script Source
@cnakazawa/[email protected] (added) watch Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json via @sanity/[email protected], [email protected], [email protected], [email protected], [email protected], @jest/[email protected], [email protected], [email protected]
📞 Telemetry

This package contains telemetry which tracks you.

Package Note Source
[email protected] (added) Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 Payslice_Protocol/examples/ecommerce/package.json
🧌 Protestware/Troll package

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Package Note Source
[email protected] (added) This package prints a protestware console message on install regarding Ukraine for users with Russian language locale Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
[email protected] (added) This package prints a protestware console message on install regarding Ukraine for users with Russian language locale Payslice_Protocol/examples/ecommerce/package.json,Payslice_Protocol/hardhat/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],Payslice_Protocol/uniswapv2/package.json via [email protected], @nomicfoundation/[email protected], [email protected], @truffle/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
[email protected] (added) This package prints a protestware console message regarding Ukraine for users with Russian language locale Payslice_Protocol/examples/ecommerce/sanity_ecommerce/package.json
Pull request report summary
Issue Status
Install scripts ⚠️ 29 issues
Native code ⚠️ 7 issues
Bin script confusion ⚠️ 11 issues
Bin script shell injection ⚠️ 1 issue
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ⚠️ 1 issue
Protestware/Troll package ⚠️ 3 issues
Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore [email protected] [email protected]

socket-security[bot] avatar Oct 05 '22 17:10 socket-security[bot]

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret ca5008fff8ef517734623da65b84ae242c4aae83 Payslice_Protocol/examples/ecommerce/.env View secret
- Generic High Entropy Secret de7cba6499dfbe4dad7d06d109c43e6761e7a6f1 Payslice_Protocol/examples/ecommerce/.env View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

gitguardian[bot] avatar Oct 23 '22 21:10 gitguardian[bot]