Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/WolvesFortress/vxbl-oauth
You can integrate this into your vweb project
To run it, do v run main.v
Upon first start, the code will panic and a login.conf
file will be generated. You must fill it with your ClientID, ClientSecret and RedirectURI, which you can find on Azure.
Register an azure application at https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps
Your ClientID is the Application (client) ID
In your application, head over to Certificates & Secrets
tab and click + New client secret
.
Your ClientSecret is the Value
field of the secret you added
In your application, head over to Authentication
tab and click + Add a platform
.
Select Web
and you will be asked to input Redirect URIs
.
Your RedirectURI
will send the client to /signin
. Since both index()
and signin()
are defined as websites in this project and therefore both handled by main.v
, you should configure it to <url_to_index>/signin
You can modify main.v
to suit your needs. Some people might want a button or link to "log in using Xbox Live" instead.
Currently there is app.redirect(request_url)
in index()
. request_uri is the "log in using Xbox Live" webpage by Microsoft
You can move the signin()
web handler to another file. You might need to modify your RedirectURI
in BOTH Azure and login.conf
In signin()
you can access all kinds of variables, which can be used in the template or to extend functionality, i.e. saving the xuid in a session cookie or do database requests and redirects
I tested the app on debian 9, ubuntu 20.4 (port 80 and 443) and windows 10 (as localhost, port 80)
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.