Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Ruby gem to use the Wompi API simple (Is still in progress)
Add this line to your application's Gemfile:
gem 'wompi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wompi
For Rails First create an wompi.rb in your config/initializers
require "wompi"
Wompi::RApi.configure do |config|
config.pub_key = "pub_key"
config.prv_key = "prv_key"
config.webhook = "https://domain.com/wompi_webhook"
config.sandbox = true # or false for production
end
wompi_login = Wompi::RApi::Login.new
wompi_login.get_acceptance_token
wompi_card = Wompi::RApi::PaymentMethod.new(wompi_login)
wompi_card.as_dummy_card(params["card_status"])
wompi_card.create
if wompi_card.success?
# DO something
end
# login
wompi_login = Wompi::RApi::Login.new
wompi_login.get_acceptance_token
# handle payment method
wompi_card = Wompi::RApi::PaymentMethod.new(wompi_login)
wompi_card.as_card_with_known_id("token")
wompi_card.as_dummy_card("APPROVED") # or "DECLINED"
wompi_card.as_card("number", "cvc", "exp_month", "exp_year", "holder")
wompi_card.as_dummy_nequi("APPROVED") # or "DECLINED"
wompi_card.as_nequi("phone")
wompi_card.get_nequi("id")
wompi_card.check_nequi("phone") # use after initializing PaymentMethod and using get_nequi
# create payment source from payment method
wompi_source = Wompi::RApi::PaymentSource.new(wompi_login)
wompi_source.create(wompi_card, "email")
# create transaction
wompi_trans = Wompi::RApi::Transaction.new(wompi_login)
wompi_trans.prepare("amount_in_cents", "currency", "customer_email", "payment_source", "installments", "reference")
wompi_trans.create
if wompi_trans.success?
# DO something
end
FAQs
Unknown package
We found that wompi 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.