Closed Bug 147496 Opened 24 years ago Closed 24 years ago

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

Categories

(Core Graveyard :: Networking: FTP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dougt, Assigned: dougt)

Details

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
looks good to me too.
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
Closed: 24 years ago
Resolution: --- → FIXED
VERIFIED: mozilla 1.1, allplats.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.