FTP should be allowed to connect to servers running on port 22.

VERIFIED FIXED

Status

()

Core
Networking: FTP
VERIFIED FIXED
16 years ago
16 years ago

People

(Reporter: dougt, Assigned: dougt)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

16 years ago
FTP should be allowed to connect to servers running on port 22.  Currently port
22 is a banned port which can not be accessed without the protocol handler's
permission.  IIRC, there are no known exploit between a ftp client and and an
ssh  server (ssh commonly runs on port 22).

Index: nsFtpProtocolHandler.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp,v
retrieving revision 1.68
diff -u -r1.68 nsFtpProtocolHandler.cpp
--- nsFtpProtocolHandler.cpp	24 Apr 2002 20:26:05 -0000	1.68
+++ nsFtpProtocolHandler.cpp	28 May 2002 05:21:17 -0000
@@ -230,7 +230,7 @@
 NS_IMETHODIMP 
 nsFtpProtocolHandler::AllowPort(PRInt32 port, const char *scheme, PRBool *_retval)
 {
-    if (port == 21)
+    if (port == 21 || port == 22)
         *_retval = PR_TRUE;
     else
         *_retval = PR_FALSE;
r=bbaetz
sr=brendan@mozilla.org -- any other common or less common alternative ports?

/be

Comment 3

16 years ago
looks good to me too.
(Assignee)

Comment 4

16 years ago
fixed on trunk:

Checking in nsFtpProtocolHandler.cpp;
/cvsroot/mozilla/netwerk/protocol/ftp/src/nsFtpProtocolHandler.cpp,v  <-- 
nsFtpProtocolHandler.cpp
new revision: 1.69; previous revision: 1.68
done
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Keywords: mozilla1.0, mozilla1.0.1
Resolution: --- → FIXED

Comment 5

16 years ago
VERIFIED: mozilla 1.1, allplats.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.