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 wrapper for the WishSimple API
WishSimple provides gift recommendations as a service. It's currently in private beta and you can request an API key here.
gem install wishsimple
If you're using Rails, you may want to add the following to
config/initializers/wishsimple.rb
:
WishSimple.configure do |config|
config.api_key = '<your API key>'
end
You can also set the key directly:
WishSimple.api_key = '<your API key>'
WishSimple uses a Facebook user's interactions with products to generate gift recommendations. Currently, only purchases are supported, though more types of interactions will be supported in the near future (e.g. ratings, adding to a wish list, etc.).
To begin, you'll need the following data:
facebook_uid
- The Facebook user's numerical UIDaccess_token
- The Facebook user's OAuth access token (see "Permissions" below)product_uid
- Whatever you use to identify the product; usually the database IDRecording a purchase is as easy as:
user = WishSimple::User.create(facebook_uid, access_token)
product = WishSimple::Product.create(product_uid)
user.purchase!(product)
You can interact with objects as you would expect:
user = WishSimple::User.new(facebook_uid)
user.access_token = access_token
user.save
purchase = WishSimple::Purchase.new
purchase.user = user
purchase.product = product
purchase.save
You can delete data like so:
# Purchases
purchase = WishSimple::Purchase.new(user: user, product: product)
purchase.destroy
# Users (this will also delete the user's purchases)
user = WishSimple::User.new(facebook_uid)
user.destroy
# Products (this will also delete the product's purchases)
product = WishSimple::Product.new(product_uid)
product.destroy
You'll want to request the following Facebook permissions when generating the access token:
user_birthday
, user_interests
, user_likes
Here's a funny riddle:
Q: What kind of gift recommendation service doesn't actually have the
ability to request the gift recommendations?
A: One that's in private beta.
Okay, that was terrible, but jokes aside, we're working hard to make the gift recommendations awesome. You can expect them soon.
Copyright (c) 2012 Shaun Chapman and WishSimple, Inc. See LICENSE for details.
FAQs
Unknown package
We found that wishsimple 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.