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.
motionbox-oauth-activeresource
Advanced tools
= OauthActiveResource
Rails gem that allows you to easily interact with an Oauth secured rest API with the ActiveResource model. You have to provide an http-like object that signs your requests with your already retrieved access_token, like the one that the oauth gem provides (http://oauth.rubyforge.org/rdoc/classes/OAuth/AccessToken.html)
= Getting Started
Assuming that you are using oauth gem:
Add into your Gemfile:
gem 'oauth-activeresource'
Make your models inherit from OauthActiveResource instead ActiveResource
class MyModel < OauthActiveResource::Base end
Set a before_filter in your controllers to override your connection object with your access_token object
def set_oauth MyModel.oauth_connection = @access_token end
Where @access_token is the final object that the oauth gem uses to sign every request. More info about how to create that object here (http://oauth.rubyforge.org/)
FAQs
Unknown package
We found that motionbox-oauth-activeresource 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.