🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

basic-ftp

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-ftp - npm Package Compare versions

Comparing version
5.2.1
to
5.2.2
+0
-4
dist/Client.js

@@ -678,6 +678,2 @@ "use strict";

async protectWhitespace(path) {
// Reject CRLF injection attempts
if (/[\r\n\0]/.test(path)) {
throw new Error("Invalid path: Contains control characters");
}
if (!path.startsWith(" ")) {

@@ -684,0 +680,0 @@ return path;

+4
-0

@@ -178,2 +178,6 @@ "use strict";

send(command) {
// Reject control character injection attempts.
if (/[\r\n\0]/.test(command)) {
throw new Error(`Invalid command: Contains control characters. (${command})`);
}
const containsPassword = command.startsWith("PASS");

@@ -180,0 +184,0 @@ const message = containsPassword ? "> PASS ###" : `> ${command}`;

{
"name": "basic-ftp",
"version": "5.2.1",
"version": "5.2.2",
"description": "FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.",

@@ -5,0 +5,0 @@ "main": "dist/index",