
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
yarn add bsso
First setup react-native-get-random-values andreact-native-url-polyfill and text-encoding.
import { BSSO } from 'bsso';
const bsso = new BSSO({
clientId: 'se-mobile-app',
redirectUri: 'http://localhost:8080/'
});
const tokenFromRedirectUrl = new URLSearchParams(window.location.hash).get('#token');
if (tokenFromRedirectUrl) {
// if we have #token, we are ready for redirect
console.log('redirect');
window.location.replace(await bsso.getRedirectURL(tokenFromRedirectUrl));
} else {
const code = new URLSearchParams(window.location.search).get("code");
if (code) {
// if we have the code, we are ready to continue getting token for authorization
const activeToken = await bsso.getToken(code);
console.log('activeToken', activeToken);
}
}
Method | Arguments | Return |
---|---|---|
getToken | code?: string | string |
isExpired | boolean | |
getRedirectURL | token: string, scope?: string | string |
toJSON | object |
FAQs
Bloomberg SSO js utilities
The npm package bsso receives a total of 59 weekly downloads. As such, bsso popularity was classified as not popular.
We found that bsso 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.