|
|
Log in / Subscribe / Register

Security

Hiding open ports with shimmer

By Jake Edge
January 9, 2008

Open TCP or UDP ports on an internet-facing host can be worrisome to an administrator, they almost feel like an invitation to an attacker. If an unknown or unpatched vulnerability is running behind the port, the host could be compromised. Admins have come up with some reasonable ways to deflect the simplest of these attacks: changing the well-known port or port knocking. The new shimmer project provides a twist, by using cryptographic techniques to choose the port to open.

The basic idea is that one port (within a chosen range) will be open to real traffic of the service that the admin wants to hide – ssh or a private web server for example. The number of that port will be able to be calculated by both client and server using a secret that they share. A client that connects to the proper port gets forwarded to the real service. In addition to the proper port, 15 other ports are opened and connected to a blacklist service. Any connection made to those ports will result in the source IP address being banned for 15 minutes. The server redoes the calculation each minute, coming up with a new set of 16 ports – one good and 15 bad.

In order to calculate the port number, the shared secret (key) is combined with the time (to the nearest minute), and the name of the service, then hashed using SHA-256. The hash is used as an AES key to encrypt the numbers 0 through 15. Those values are mapped into the port range and serve as the 16 port numbers for that minute. In order to handle small clock variations between client and server, the server actually keeps each set of 16 open for three minutes – adding the set for the minutes before and after the current one.

While this seems like it provides a great deal of security to hide an open port behind, in reality it is more showy than useful. As with simple port knocking, or changing the well-known port number, it is vulnerable to an attacker that can monitor traffic to the server and observe successful connections. Shimmer leaves three ports wide open at any given time with 45 ports that will cause an IP to get blacklisted. Depending on the size of the port range chosen, the odds aren't that bad of randomly guessing the right port. Someone with few thousand IP addresses to use probably won't have any difficulty.

Much like the other techniques, shimmer will likely deflect all but the most determined of attackers, but is unlikely to provide much in the way of a barrier against those. It sounds attractive and uses cryptographic terms and techniques which may make it seem more secure than it really is. Using it without understanding this could lead to a false sense of security.

Comments (9 posted)

Brief items

PostgreSQL releases critical security patches

The PostgreSQL team has released a set of patches for five critical security vulnerabilities. Two privilege escalation flaws and three denial of service vulnerabilities were fixed. "Today the PostgreSQL Global Development Group is releasing updated versions which patch five security vulnerabilities. These releases update all current PostgreSQL versions, including 8.2, 8.1, 8.0, 7.4 and 7.3. They are considered CRITICAL and PostgreSQL DBAs and sysadmins should install the update as soon as they reasonably can." Click below for more details.

Full Story (comments: none)

New vulnerabilities

Asterisk: denial of service

Package(s):asterisk CVE #(s):
Created:January 4, 2008 Updated:January 9, 2008
Description: Asterisk has issued a security advisory on a remote crash vulnerability in the SIP channel driver.
Alerts:
Fedora FEDORA-2008-0199 asterisk 2008-01-03
Fedora FEDORA-2008-0198 asterisk 2008-01-03

Comments (none posted)

cups: buffer overflow

Package(s):cups CVE #(s):CVE-2007-5848
Created:January 7, 2008 Updated:February 27, 2008
Description:

From the CVE entry:

Buffer overflow in CUPS in Apple Mac OS X 10.4.11 allows local admin users to execute arbitrary code via a crafted URI to the CUPS service.

From the rPath advisory:

Previous versions of the cups package contain a buffer-overflow weakness. It is not believed that this weakness can be exploited to execute malicious code.

Alerts:
Mandriva MDVSA-2008:050 cups 2008-02-26
SuSE SUSE-SR:2008:002 tog-pegasus, xine, libxml2, libqt4, XFree86/X.Org, krb5, libexif, openafs, Apache, MozillaThunderbird, Xen 2008-01-25
SuSE SUSE-SA:2008:002 cups 2008-01-10
rPath rPSA-2008-0008-1 cups 2008-01-05

Comments (1 posted)

dovecot: multiple vulnerabilities

Package(s):dovecot CVE #(s):CVE-2007-6598
Created:January 3, 2008 Updated:October 7, 2008
Description: Dovecot has multiple vulnerabilities including an issue involving the confusion between LDAP-authenticated logins across users with the same password and a denial of service involving a connecting user.
Alerts:
SuSE SUSE-SR:2008:020 dovecot, GraphicsMagick, openssh, mercurial 2008-10-07
Red Hat RHSA-2008:0297-02 dovecot 2008-05-21
Ubuntu USN-567-1 dovecot 2008-01-10
Debian DSA-1457-1 dovecot 2008-01-09
rPath rPSA-2008-0001-1 dovecot 2008-01-03

Comments (none posted)

libcdio: buffer overflows

Package(s):libcdio CVE #(s):
Created:January 3, 2008 Updated:January 9, 2008
Description: The libcdio CD-ROM access library has two buffer overflow vulnerabilities involving long Joliet file names and the cdio buffer.
Alerts:
Fedora FEDORA-2008-0136 libcdio 2008-01-03
Fedora FEDORA-2008-0104 libcdio 2008-01-03

Comments (none posted)

mantis: cross-site scripting

Package(s):mantis CVE #(s):CVE-2007-6611
Created:January 7, 2008 Updated:March 4, 2008
Description:

From the CVE entry:

Cross-site scripting (XSS) vulnerability in view.php in Mantis before 1.1.0 allows remote attackers to inject arbitrary web script or HTML via a filename.

Alerts:
Gentoo 200803-04 mantisbt 2008-03-03
Debian DSA-1467-1 mantis 2008-01-19
Fedora FEDORA-2008-0353 mantis 2008-01-07
Fedora FEDORA-2008-0282 mantis 2008-01-07

Comments (none posted)

maradns: denial of service

Package(s):maradns CVE #(s):CVE-2008-0061
Created:January 4, 2008 Updated:January 30, 2008
Description: MaraDNS 1.0 before 1.0.41, 1.2 before 1.2.12.08, and 1.3 before 1.3.07.04 allows remote attackers to cause a denial of service via a crafted DNS packet that prevents an authoritative name (CNAME) record from resolving, aka "improper rotation of resource records."
Alerts:
Gentoo 200801-16 maradns 2008-01-29
Debian DSA-1445-1 maradns 2008-01-03

Comments (none posted)

opera: multiple vulnerabilities

Package(s):opera CVE #(s):CVE-2007-6520 CVE-2007-6521 CVE-2007-6522 CVE-2007-6523 CVE-2007-6524
Created:January 7, 2008 Updated:January 9, 2008
Description:

From the SUSE advisory:

CVE-2007-6520: Fixed an issue where plug-ins could be used to allow cross domain scripting, as reported by David Bloom. Details will be disclosed at a later date.

CVE-2007-6521: Fixed an issue with TLS certificates that could be used to execute arbitrary code, as reported by Alexander Klink (Cynops GmbH). Details will be disclosed at a later date.

CVE-2007-6522: Rich text editing can no longer be used to allow cross domain scripting, as reported by David Bloom. See our advisory.

CVE-2007-6523: Fixed a problem where malformed BMP files could cause Opera to temporarily freeze.

CVE-2007-6524: Prevented bitmaps from revealing random data from memory, as reported by Gynvael Coldwind. Details will be disclosed at a later date.

Alerts:
SuSE SUSE-SA:2008:001 opera 2008-01-07

Comments (none posted)

PostgreSQL: multiple vulnerabilities

Package(s):postgresql CVE #(s):CVE-2007-6600 CVE-2007-4772 CVE-2007-6067 CVE-2007-4769 CVE-2007-6601
Created:January 9, 2008 Updated:January 17, 2013
Description: Several vulnerabilities have been found in the PostgreSQL database manager. The developers call the fixes "critical," but also note that, as of the time of the update, none of them were known to be exploited; see this advisory for more information.
Alerts:
SUSE SUSE-SU-2016:0677-1 postgresql94 2016-03-07
openSUSE openSUSE-SU-2016:0578-1 postgresql94 2016-02-25
SUSE SUSE-SU-2016:0555-1 postgresql94 2016-02-24
SUSE SUSE-SU-2016:0539-1 postgresql93 2016-02-22
openSUSE openSUSE-SU-2016:0531-1 postgresql93 2016-02-21
Oracle ELSA-2013-0122 tcl 2013-01-12
CentOS CESA-2013:0122 tcl 2013-01-09
Scientific Linux SL-tcl-20130116 tcl 2013-01-16
Mandriva MDVSA-2009:251-1 postgresql8.2 2009-12-08
Red Hat RHSA-2009:1461-01 Red Hat Application Stack 2009-09-23
CentOS CESA-2009:1485 postgresql 2009-10-07
Fedora FEDORA-2009-9473 postgresql 2009-09-11
Fedora FEDORA-2009-9474 postgresql 2009-09-11
Red Hat RHSA-2009:1484-01 postgresql 2009-10-07
Red Hat RHSA-2009:1485-01 postgresql 2009-10-07
CentOS CESA-2009:1484 postgresql 2009-10-09
CentOS CESA-2009:1484 postgresql 2009-10-30
Mandriva MDVSA-2008:059 tcl 2007-03-05
Red Hat RHSA-2008:0134-01 tcltk 2008-02-21
Red Hat RHSA-2008:0040-01 postgresql 2008-02-01
Gentoo 200801-15 postgresql 2008-01-29
rPath rPSA-2008-0016-1 postgresql 2008-01-15
Ubuntu USN-568-1 postgresql 2008-01-14
Debian DSA-1463-1 postgresql-7.4 2008-01-14
Debian DSA-1460-1 postgresql-8.1 2008-01-13
Fedora FEDORA-2008-0552 postgresql 2008-01-11
Fedora FEDORA-2008-0478 postgresql 2008-01-11
Red Hat RHSA-2008:0039-01 postgresql 2008-01-11
Red Hat RHSA-2008:0038-01 postgresql 2008-01-11
Mandriva MDVSA-2008:004 postgresql 2008-01-09

Comments (none posted)

python-cherrypy: unauthorized file access via malicious cookie

Package(s):python-cherrypy CVE #(s):CVE-2008-0252
Created:January 9, 2008 Updated:February 6, 2008
Description:

From the Fedora advisory:

Malicious cookies may allow access to files outside the session directory.

Alerts:
Debian DSA-1481-1 python-cherrypy 2008-02-05
Gentoo 200801-11 cherrypy 2008-01-27
rPath rPSA-2008-0030-1 CherryPy 2008-01-24
Fedora FEDORA-2008-0333 python-cherrypy 2008-01-07
Fedora FEDORA-2008-0299 python-cherrypy 2008-01-07

Comments (none posted)

qt4: security restriction bypass

Package(s):qt4 CVE #(s):CVE-2007-5965
Created:January 3, 2008 Updated:February 21, 2008
Description: Trolltech Qt has a privilege escalation vulnerability. An error can be triggered in QSslSocket when verifying SSL certificates, attackers can use this to bypass the SSL certificate verification and acquire unauthorized access to a vulnerable application.
Alerts:
Ubuntu USN-579-1 qt4-x11 2008-02-20
Mandriva MDVSA-2008:042 qt4 2008-02-07
SuSE SUSE-SR:2008:002 tog-pegasus, xine, libxml2, libqt4, XFree86/X.Org, krb5, libexif, openafs, Apache, MozillaThunderbird, Xen 2008-01-25
Fedora FEDORA-2007-4285 qt4 2008-01-03
Fedora FEDORA-2007-4354 qt4 2008-01-03

Comments (1 posted)

tcpreen: denial of service

Package(s):tcpreen CVE #(s):CVE-2007-6562
Created:January 3, 2008 Updated:January 9, 2008
Description: The tcpreen TCP connection monitoring tool has multiple buffer overflow vulnerabilities, these may be used to cause a denial of service.
Alerts:
Debian DSA-1443-1 tcpreen 2008-01-03

Comments (none posted)

tog-pegasus: stack buffer overflow

Package(s):tog-pegasus CVE #(s):CVE-2008-0003
Created:January 8, 2008 Updated:January 12, 2008
Description: During a security audit, a stack buffer overflow flaw was found in the PAM authentication code in the OpenPegasus CIM management server. An unauthenticated remote user could trigger this flaw and potentially execute arbitrary code with root privileges.
Alerts:
Fedora FEDORA-2008-0572 tog-pegasus 2008-01-11
Fedora FEDORA-2008-0506 tog-pegasus 2008-01-11
Red Hat RHSA-2008:0002-01 tog-pegasus 2008-01-07

Comments (none posted)

unp: code execution via malicious file names

Package(s):unp CVE #(s):CVE-2007-6610
Created:January 9, 2008 Updated:January 9, 2008
Description: The unp unpacking tool (prior to version 1.0.14) does not properly check file names, allowing the execution of shell commands.
Alerts:
Gentoo 200801-01 unp 2008-01-09

Comments (none posted)

wordpress: multiple vulnerabilities

Package(s):wordpress CVE #(s):CVE-2007-6013 CVE-2007-6318
Created:January 3, 2008 Updated:January 9, 2008
Description: The Wordpress online publishing and weblog utility has multiple SQL injection vulnerabilities in versions 2.3.1 and earlier. Remote attackers can use this to execute arbitrary SQL commands via the s parameter.
Alerts:
Fedora FEDORA-2008-0103 wordpress 2008-01-03
Fedora FEDORA-2008-0126 wordpress 2008-01-03

Comments (none posted)

wzdftpd: denial of service

Package(s):wzdftpd CVE #(s):CVE-2007-5300
Created:January 7, 2008 Updated:January 9, 2008
Description:

From the CVE entry:

Off-by-one error in the do_login_loop function in libwzd-core/wzd_login.c in wzdftpd 0.8.0, 0.8.2, and possibly other versions and earlier allows remote attackers to cause a denial of service (daemon crash) via a long USER command that triggers a stack-based buffer overflow.

Alerts:
Debian DSA-1452-1 wzdftpd 2008-01-06

Comments (none posted)

Page editor: Jake Edge
Next page: Kernel development>>


Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds