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.
Accept credit cards and cryptocurrencies. Dead simple user payment system so easy a cow could do it.
Accept credit cards and cryptocurrencies. Dead simple user payment system so simple a caveman cow could do it.
Turn your app into a ca💲h c🐄w.
CCashCow is a small app that sits in the middle between your application and the payment processors it uses. CCashCow offloads as much of the logic and user-interaction as possible to the forms maintained by and hosted on the payment processors themselves. Your app in turn offloads to CCashCow everything but the bare minimum needed for your app to accept payments. The end result is a system that's straightforward for developers and users, secure, easy to mantain, and as customizable as possible without introducing too much complexity.
Will it continue receiving updates? Yes. It was built for and is mantained by Ptorx and other projects in the Xyfir Network.
What's it look like? However you want it to, but for the default theme, see Screenshots.
As simple as CCashCow is, you'll still need to download, configure, build, and integrate it into your app. We've made it just about as easy as it could possibly be.
Note #1: If your system does not yet have Node installed, start with nvm (or nvm for Windows).
Note #2: You may alternatively download CCashCow through npm (see here), however this is not currently the recommended installation method. In the future we'll likely have a CLI tool available through npm to make configuring, running, and managing CCashCow instances easier.
git clone https://github.com/Xyfir/ccashcow.git
cd ccashcow/server
npm install
touch .env
Now open up ccashcow/server/.env
in your editor and fill out the values. See the CCashCow.Env.Common
and CCashCow.Env.Server
interfaces in types/ccashcow.d.ts for expected environment variables. Format is KEY=VALUE
(PORT=1234
, NAME="CCashCow"
, etc).
npm run build
npm run start # or launch ./dist/app.js however you like
At this point the setup is based on your environment and what your needs are. Probably you'll run the server with pm2 and put Node behind Nginx or Apache.
cd ../web
npm install
touch .env
Now open up ccashcow/web/.env
in your editor and fill out the values. See the CCashCow.Env.Common
and CCashCow.Env.Web
interfaces in types/ccashcow.d.ts for expected environment variables.
npm run build
This part is largely up to you, so it's important to understand the flow of data between your app and CCashCow:
To be a bit more specific:
Check the CCashCow.Payment interface. Your app should only ever send a JWT containing id
, amount
, and methods
; everything else will be added by CCashCow and sent back to your app with the user later. To check if a payment has been paid, all you have to do is check that paid
is a number, and not undefined
. Other values sent back to your app like method
or squareTransactionId
can be ignored unless you have some other use for them.
This is about all there is to see. Once the user chooses a payment method they will be redirected to the payment processor's hosted form. Most of CCashCow's utility is in the work it does behind the scenes communicating with each payment processor API.
FAQs
Accept cards & crypto. Payments so easy a cow could do it.
The npm package ccashcow receives a total of 0 weekly downloads. As such, ccashcow popularity was classified as not popular.
We found that ccashcow 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.