Natted IRC "inherently insecure"?
Someone recently indicated to me that they believed that natting IRC through a firewall was "inherently insecure" and I wanted to get opinions on that statement. I guess, in my mind, it isn't any more or less secure than any other service natted through the firewall - it all depends on how comfortable you feel with the inherent security of the client/tool that you're using.
Comments?
Signature · 1 line
Jesse W. Asher [email protected]
Quoted 9 lines · * Jesse W. Asher ([email protected]) wrote:
Someone recently indicated to me that they believed that natting IRC through a firewall was "inherently insecure" and I wanted to get opinions on that statement. I guess, in my mind, it isn't any more or less secure than any other service natted through the firewall - it all depends on how comfortable you feel with the inherent security of the client/tool that you're using.
Comments?
The client/tool is one thing but I think what they were probably getting at is the issue of DCC. The problem with DCC is that it expects to be able to reach any >1024 port on the remote system. The two clients work out, over the IRC network, the ports to use. If your firewall doesn't allow connections to high ports outbound or inbound, and you don't use some kind of IRC helper in your firewall, then DCC won't work. This may be acceptable to you but some people feel they need DCC. Using an IRC helper in your firewall can mitigate these problems some. They can't fix everything though because of the way in which the DCC protocol works. A user using DCC can potentially allow a scan of the high ports on at least the machine they're IRC'ing from.
Unfortunately I'm not very familiar with the internals of the netfilter IRC-helper module or what checks it does but there are some things it has no way to know due simply to where it has to be and what it gets to see. I havn't heard of many people getting attacked in such a way though so the chances of you being exploited in that way are probably pretty slim. Unless you have someone going for you specifically using an IRC helper will probably be enough. Most attackers are going for 'easy' targets, things they can sweep large network blocks for; such as the recent OpenSSH holes, various Windows-based services, etc.
Stephen
Quoted 14 lines · Stephen Frost
Quoted 1 line
Comments?
The client/tool is one thing but I think what they were probably getting at is the issue of DCC. The problem with DCC is that it expects to be able to reach any >1024 port on the remote system. The two clients work out, over the IRC network, the ports to use. If your firewall doesn't allow connections to high ports outbound or inbound, and you don't use some kind of IRC helper in your firewall, then DCC won't work. This may be acceptable to you but some people feel they need DCC. Using an IRC helper in your firewall can mitigate these problems some. They can't fix everything though because of the way in which the DCC protocol works. A user using DCC can potentially allow a scan of the high ports on at least the machine they're IRC'ing from.
Quoted 9 lines
Unfortunately I'm not very familiar with the internals of the netfilter IRC-helper module or what checks it does but there are some things it has no way to know due simply to where it has to be and what it gets to see. I havn't heard of many people getting attacked in such a way though so the chances of you being exploited in that way are probably pretty slim. Unless you have someone going for you specifically using an IRC helper will probably be enough. Most attackers are going for 'easy' targets, things they can sweep large network blocks for; such as the recent OpenSSH holes, various Windows-based services, etc.
The only way to get a DCC expections set up is to send out a DCC request and then the expectation will send packets only to the host that sent the DCC request. This can be used to sort of add dynamic port-forwards if you are sitting behind NAT. I don't see it as a real security-problem as if you want real security you won't use a helper of any kind. And if a DCC request is sent out with the purpose of letting an attacker in, the chances are that the attacker already has access to this machine to send out the DCC request because the user will probably not send it (or perhaps it's a new email trojan for a certain unnamed mailclient? :).
Signature · 4 lines
/Martin Never argue with an idiot. They drag you down to their level, then beat you with experience.
So, if the firewall is set up securely so that ports above 1024 are not unfiltered and a "helper application" is in place to help with DCC, then IRC is not "inherently insecure"?
Quoted 34 lines · Stephen Frost
Quoted 5 lines · * Jesse W. Asher ([email protected]) wrote:
Someone recently indicated to me that they believed that natting IRC through a firewall was "inherently insecure" and I wanted to get opinions on that statement. I guess, in my mind, it isn't any more or less secure than any other service natted through the firewall - it all depends on how comfortable you feel with the inherent security of the client/tool that you're using.
Comments?
The client/tool is one thing but I think what they were probably getting at is the issue of DCC. The problem with DCC is that it expects to be able to reach any >1024 port on the remote system. The two clients work out, over the IRC network, the ports to use. If your firewall doesn't allow connections to high ports outbound or inbound, and you don't use some kind of IRC helper in your firewall, then DCC won't work. This may be acceptable to you but some people feel they need DCC. Using an IRC helper in your firewall can mitigate these problems some. They can't fix everything though because of the way in which the DCC protocol works. A user using DCC can potentially allow a scan of the high ports on at least the machine they're IRC'ing from.
Unfortunately I'm not very familiar with the internals of the netfilter IRC-helper module or what checks it does but there are some things it has no way to know due simply to where it has to be and what it gets to see. I havn't heard of many people getting attacked in such a way though so the chances of you being exploited in that way are probably pretty slim. Unless you have someone going for you specifically using an IRC helper will probably be enough. Most attackers are going for 'easy' targets, things they can sweep large network blocks for; such as the recent OpenSSH holes, various Windows-based services, etc.
Stephen
Signature · 4 lines
Jesse W. Asher "They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty or safety." - Benjamin Franklin