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/webguerilla/ftps
This implementation does not implement the full FTP/FTPS specification. Only a small subset.
I have not done a security review of the code, yet. Therefore no guarantee is given. It would be nice if somebody could do a security review and report back if the implementation is vulnerable.
go get github.com/webguerilla/ftps
ftps := new(FTPS)
ftps.TLSConfig.InsecureSkipVerify = true // often necessary in shared hosting environments
ftps.Debug = true
err := ftps.Connect("localhost", 21)
if err != nil {
panic(err)
}
err = ftps.Login("username", "password")
if err != nil {
panic(err)
}
directory, err := ftps.PrintWorkingDirectory()
if err != nil {
panic(err)
}
log.Printf("Current working directory: %s", directory)
err = ftps.Quit()
if err != nil {
panic(err)
}
This work was inspired by the work of jlaffaye (https://github.com/jlaffaye/ftp) and smallfish (https://github.com/smallfish/ftp).
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.