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.
During a re-write vercel removed the support for serve
's --ssl
flag.
However, a user named jwarby pointed
out that
version 6 still included it and was working fine. I noticed that version 6 had
vulnerabilities though, so I decided to fork v6 of vercel/serve to remove them.
I'm likely to maintain this this package as I'm planning on using it in my projects.
npm install -g ssl-serve
Once that's done, you can run this command inside your project's directory:
serve [options] <path>
Just use the --ssl
option. Make sure to accept the self-signed certificate
in your browser too.
Run this command to see a list of all available options:
serve help
If you set the --auth
flag, the package will look for a username and password
in the SERVE_USER
and SERVE_PASSWORD
environment variables.
As an example, this is how such a command could look like:
SERVE_USER=leo SERVE_PASSWORD=1234 serve --auth
You can also use the package inside your application. Just load it:
const serve = require('serve')
And call it with flags (run this command for the full list):
const server = serve(__dirname, {
port: 1337,
ignore: ['node_modules']
})
Later in the code, you can stop the server using this method:
server.stop()
I'm happy to merge contributor's PRs.
See License.
Leo Lamprecht (@notquiteleo) - Vercel Tim Daubenschuetz tim.daubenschuetz@gmail.com
FAQs
Static file serving and directory listing
The npm package ssl-serve receives a total of 157 weekly downloads. As such, ssl-serve popularity was classified as not popular.
We found that ssl-serve 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
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.