ftp-srv
Affected
- introduced
1.0.0, fixed2.19.6(semver)
Fixed versions
2.19.6
Fix
- Fixed version
2.19.6npm install [email protected]
Advisory
Also known as: None
Server-Side Request Forgery in ftp-srv
All versions of ftp-srv from v1.0.0 onward to v4.3.3 are vulnerable to Server-Side Request Forgery (SSRF). The package fails to prevent remote clients to access other resources in the network, for example when connecting to the server through telnet. This allows attackers to access any network resources available to the server, including private resources in the hosting environment.
Recommendation
Upgrade to patched versions^2.19.6, ^3.1.2, ^4.3.4
Workarounds
Blacklisting the FTP Command PORT will prevent the server from exposing this behaviour through active connections until a fix is applied.
const ftp = new FtpSrv({
blacklist: ['PORT']
});High Basis: The source's own band: HIGH
1.0.0, fixed 2.19.6 (semver)2.19.6
2.19.6npm install [email protected]3.0.0, fixed 3.1.2 (semver)3.1.2
3.1.2npm install [email protected]4.0.0, fixed 4.3.4 (semver)4.3.4
4.3.4npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0