Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/kabukky/caddy-redis
This package is a plugin for the Caddy webserver. Its purpose is to store and retrieve user data in and from Redis.
If you HTTP POST a valid JSON payload to /redis/<key>
, it will put it into a Redis database under the specified key.
Similarly, if you do a HTTP GET on /redis/<key>
, it will return the previously stored data. If you specify a Accept-Encoding
header of application/xml
, it will return the data as XML, otherwise as JSON.
WARNING: This plugin is for testing purposes only. Do not use in production! Seriously, this plugin will write anything given by anyone to the specified Redis database. You'll want to implement some kind of authentication at the very least.
curl -X POST -H "Content-Type: application/json" -d '{"key":"val"}' http://localhost:2015/redis/test
This will SET test => "{"key":"val"}"
in Redis (actually, the key will be caddy:test
internally to keep things somewhat organized).
curl -H "Accept-Encoding: application/json" http://localhost:2015/redis/test
This will GET the previously stored data for the key test
as JSON.
curl -H "Accept-Encoding: application/xml" http://localhost:2015/redis/test
This will GET the previously stored data for the key test
as XML.
redis {
server localhost:6379 # NOTE: If not specified, ":6379" is used as the Redis server (default).
password foobar # NOTE: If not specified, Redis is used without authentication (default).
}
FAQs
Unknown package
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.