Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
impact-stack-auth-wsgi-middleware
Advanced tools
This app is just one piece in our bigger authorization scheme for microservices. Its purpose is make migrating to session cookies simpler by ensuring that backend microservices only need to deal with JWTs that contain all the needed claims.
itsdangerous
. The middleware only handles session UUIDs with a valid signature.from impact_stack.auth_wsgi_middleware import AuthMiddleware
app = Flask(__name__)
AuthMiddleware.init_app(app)
The middleware reads its configuration from the Flask app.config
dictionary. All variables are prefixed with AUTH_…
.
variable | description |
---|---|
AUTH_SECRET_KEY | The secret key used to verify the cookie value’s signature. It defaults to SECRET_KEY . |
AUTH_SIGNATURE_ALGORITHM | A hash function to use as digest method for signing the session IDs. Defaults to hashlib.sha256 |
AUTH_COOKIE_NAME | Name of the cookie from which the the session UUID is read. Defaults to session_uuid . |
AUTH_REDIS_URL | URL to a redis database (see the redis-py documentation for more information)). |
AUTH_REDIS_CLIENT_CLASS | The redis client class used by the middleware. Mostly needed for testing. Defaults to redis.Redis |
AUTH_HEADER_TYPE | Prefix used when adding the JWT to the HTTP Authorization header. Defaults to the value of JWT_HEADER_TYPE which in turn defaults to 'Bearer' . |
FAQs
Unknown package
We found that impact-stack-auth-wsgi-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.