Closed
Bug 147496
Opened 22 years ago
Closed 22 years ago
FTP should be allowed to connect to servers running on port 22.
Categories
(Core Graveyard :: Networking: FTP, defect)
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;
Comment 1•22 years ago
|
||
r=bbaetz
Comment 2•22 years ago
|
||
sr=brendan@mozilla.org -- any other common or less common alternative ports? /be
Comment 3•22 years ago
|
||
looks good to me too.
Assignee | ||
Comment 4•22 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
Updated•2 months ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•