
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
express-jwt-axss
Advanced tools
Middleware that validates JsonWebTokens and sets req.user
.
This module lets you authenticate HTTP requests using JWT tokens in your Node.js applications. JWTs are typically used to protect API endpoints, and are often issued using OpenID Connect.
This module if forked form the express-jwt Module made by @auth0. Followings points where changed:
options.skip
was removedcredentialsRequired
is set to false
a error is passed if credentials are passed but expiredoptions.getAntiXSSToken
Feature was addedThe getAntiXSSToken
Option can be switched on by setting it to true
or a getToken(req)
function.
If it is set to true
it will look for a second JWT in the req.cookies.token
Cookie.
This second JWT is required to have a refJit
Field containing the same unique identifier as
the first JWT in it's jit
Field. This can be used to help against simple XSS Attacks if, and only
if the second JWT is provided in a way JS cannot reach on the Client. Mainly a Cookie with
the HTTP-Only and Secure Flag set.
Note that the req.cookies
Field does only exists if a cookie parser is used.
With there for is a requirement if the getAntiXSSToken
Feature is used.
Pleas visit the original project for examples and documentation of the usage. (TODO add custom doku).
If you have found a bug or security vulnerability please check if it is also contained in the orginal project. If so please report it there like described in the orginal github repo. Else you can use the Issue Tracker
$ npm install
$ npm test
This project is licensed under the MIT license. See the LICENSE file for more info.
FAQs
JWT authentication middleware.
We found that express-jwt-axss 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.