LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-18-2004, 01:49 PM   #1
sagun_newbie
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
is it possible to hack telneting at port 25?


i have a mail server in my machine and is it possible to hack into the box telnetting at port 25?
 
Old 07-18-2004, 02:07 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Telnet is just a generic utility used to access the port. Whether or not your mail server is vulnerable to a hack attempt really depends on the configuration, patches, etc.
 
Old 07-18-2004, 02:21 PM   #3
sagun_newbie
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
can u tell me more about this: stickman

thanks for the reply stick man, can u tell me more on this. is it possible to give linux command to remote host once it accepts telnet at port 25
 
Old 07-18-2004, 02:29 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Servers such as your mail one accept connections from other programs or servers, and communicate data such as emails. This data is normally ASCII/text based, and so human readable. Telnet allows you to connect to a server and pass text commands, so you can issue your own GET requests for web pages or send email details.

If the server you are running has vulnerabilities such as buffer overflows, then by sending a maliciously crafted lot of text you can cause the server program to act incorrectly, maybe executing code or whatever it's contorted to do.

The port and the connecting program aren't important really, it's the security of the code that was written for the server's input checking.
 
Old 07-18-2004, 06:55 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Adding to what Proud said, the telnet program is just a client that allows connections to arbitrary TCP ports. Depending on what service is runing on that port, it may be possible to issue commands in clear text simply by typing. A number of common services are usable this way, such as HTTP, SMTP, POP3, etc... The ability to use the telnet program to connect to say, port 25/TCP (usually SMTP) is no different from what happens when Evolution, Kmail, Thunderbird, etc would connect to port 25/TCP.

The reason why telnet causes frequent confusion is that there is also a telnet service that is run by telnetd (the Telnet service daemon). The telnet service allows remote connections to authenticate as a local user and gain a shell. Telnet itself usually isn't vulnerable to attacks, since the protocol is fairly simple. The reason telnet service gets a bad reputation is because it passes everything "in the clear", i.e. not in an encrypted fashion. This lets potential snoopers view the actual login username and password being used. That's why use of the telnet service (i.e. telnetd, usually run on port 23/TCP) is highly discouraged and SSH is the recommended remote login protocol.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telneting to a udp port. juanb Linux - Security 3 03-06-2013 01:30 PM
well... i have no choice but to hack through the usb port patch pyenos Linux - Hardware 0 03-04-2005 03:50 AM
telneting to router loganwva Linux - Security 3 06-24-2002 07:41 AM
How to prevent telneting to my mail server on port 25 adamrau Linux - Networking 7 10-24-2001 09:44 PM
How to prevent someone from telneting to my mail server on port 25 adamrau Linux - Security 2 10-11-2001 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration