
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
This is a Rack middleware to add extra headers which behave like the Cookie and Set-Cookie headers.
This simple middleware sets anything in the X-#{prefix}-Cookie header to Cookie, and in the response will copy anything in Set-Cookie to X-#{prefix}-Set-Cookie. This can be useful to enable session management where an HTML client is accessing your API, which doesn't fully support cookies. We have found this to be the case in some Smart TV web applications, and in mobile apps written using frameworks such as Cordova
Add this line to your application's Gemfile:
gem 'rack-cookie_rewrite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rack-cookie_rewrite
In your config.ru, or where ever else you set up your Rack environment, add the following lines:
require 'rack/cookie_rewrite'
use Rack::CookieRewrite, 'MSP'
Then use cookies in your Rack application as normal.
In your client application, you can then use X-MSP-Cookie and X-MSP-Set-Cookie in lieu of normal Cookie commands. This means you will have to manually read and set these headers if you are sending requests that expect and set cookies.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.