Package: netcat-openbsd
Version: 1.105-7
Severity: normal

If netcat is used to connect to a closed local port, it may connect to itself.

How to reproduce:

1) Select a random port from the range which is used by clients
# sysctl net.ipv4.ip_local_port_range

2) Start netcat in loop with this port
# while true; do nc.openbsd -v localhost 52804 < /dev/zero; done
nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
[....]
nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
nc.openbsd: connect to localhost port 52804 (tcp) failed: Connection refused
Connection to localhost 52804 port [tcp/*] succeeded!

It shouldn't do this :)

Greetings
Felix Rublack

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.5 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages netcat-openbsd depends on:
ii  libbsd0  0.4.2-1
ii  libc6    2.13-34

netcat-openbsd recommends no packages.

netcat-openbsd suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to