|
|
Log in / Subscribe / Register

Security

Authentication bypass in routers

By Jake Edge
March 5, 2008

An authentication bypass vulnerability is one of the more dangerous problems that a web application can have. It allows the attacker to perform some action that the application designer saw fit to restrict to authenticated users without providing said authentication. Using these techniques, an attacker can control a targeted web application from afar without even wasting time cracking bad passwords—a dream scenario for such people.

If an authentication bypass is found in the latest social networking site, the flaw could cause embarrassment, but if that bypass is in your home router, much worse things could result. A series of articles over at GNUCITIZEN highlights quite a variety of authentication bypass flaws in various embedded devices including routers. The flaws come from their research and recent router hacking challenge, which challenged readers to find holes in their routers. (There is no table of contents for the series, so here are links to the four installments: 1, 2, 3, and 4).

Most authentication bypass flaws are caused by a conceptual mistake made by web programmers: believing that the "normal" way of accessing the site is the only way to access it. This manifests itself as applications that check for particular URLs to see if they require credentials without considering the possibility of aliasing. For example, web servers will generally ignore double-slashes in a URL, but if the application checks for /privileged/page and gets /privileged//page it may very well fall prey to an authentication bypass. Other similar schemes can be used to make the URL look different, but arrive at the same place.

A far uglier possibility is applications that believe you can only get to a particular URL via a page that enforces authentication. This is a belief in "security through obscurity"; that attackers won't be able to guess the URLs for the pages "behind" the authentication screen. This is almost comical in that there are many ways to find out what those URLs are, not least by buying the device and accessing them yourself. Pages that require authentication need to check that the credentials have been provided whenever the page is accessed—without regard for what URL got them there.

Some applications do all of the checking correctly on the pages that show various settings in a form allowing them to be changed, but the action of the form submits it to a different program. Inexplicably, sometimes that program does not check for credentials. Perhaps the programmer believes that web forms can only be submitted from the page that they have created, but it is trivially easy to generate an HTTP POST with the appropriate parameters. It certainly does no good to protect the current value of settings from non-authenticated users if they can easily change them to any values they want.

In terms of web security, authentication bypass is usually quite easy to avoid, it is a matter of ensuring valid credentials anywhere they are required. Before performing any action that requires a logged-in user, check the cookie (or other persistent authentication mechanism) for validity to perform the action requested. For people using routers at home, perhaps the best advice is to make sure its administrative interface is not internet facing. Routers have a pretty bad track record of getting this right, so far, as the hacking challenge and other research has shown.

Comments (7 posted)

Brief items

A set of Android vulnerabilities

Core Security has sent out an lengthy security advisory about Google's Android platform. It seems that, in their hurry to get something out there, the developers at Google used some old image processing libraries with a number of old, well-known vulnerabilities. This release was not meant for deployment anywhere, and there should have been no harm done. Given the stakes, though, one can only assume that future releases will be made with more care.

Full Story (comments: 18)

New vulnerabilities

am-utils: overwrite arbitrary files

Package(s):am-utils CVE #(s):
Created:February 29, 2008 Updated:March 5, 2008
Description: The am-utils package could be vulnerable to an attack in which one local user can modify the contents of arbitrary files to which other local users running expn have write access.
Alerts:
rPath rPSA-2008-0088-1 am-utils 2008-02-28

Comments (none posted)

audacity: insecure tmpfile handling

Package(s):audacity CVE #(s):CVE-2007-6061
Created:March 3, 2008 Updated:May 12, 2008
Description: From the Gentoo advisory:

Viktor Griph reported that the "AudacityApp::OnInit()" method in file src/AudacityApp.cpp does not handle temporary files properly.

A local attacker could exploit this vulnerability to conduct symlink attacks to delete arbitrary files and directories with the privileges of the user running Audacity.

Alerts:
Fedora FEDORA-2008-3456 audacity 2008-05-09
Fedora FEDORA-2008-3511 audacity 2008-05-09
Mandriva MDVSA-2008:074 audacity 2007-03-20
Gentoo 200803-03 audacity 2008-03-02

Comments (none posted)

cacti: multiple vulnerabilities

Package(s):cacti CVE #(s):CVE-2008-0783 CVE-2008-0784 CVE-2008-0785 CVE-2008-0786
Created:February 28, 2008 Updated:July 16, 2008
Description: From the Mandriva alert: A number of vulnerabilities were found in the Cacti program, including XSS vulnerabilities, SQL injection vulnerabilities, CRLF injection vulnerabilities, and information disclosure vulnerabilities.
Alerts:
Debian DSA-1569-3 cacti 2008-07-15
Debian DSA-1569-2 cacti 2008-05-06
Debian DSA-1569-1 cacti 2008-05-05
Gentoo 200803-18 cacti 2008-03-10
SuSE SUSE-SR:2008:005 acroread, asterisk, cacti, compat-openssl097g, icu, libcdio, wireshark/ethereal, Jakarta, perl-tk 2008-03-06
Mandriva MDVSA-2008:052 cacti 2008-02-27

Comments (none posted)

dbus: privilege escalation

Package(s):dbus CVE #(s):CVE-2008-0595
Created:February 28, 2008 Updated:October 14, 2008
Description: From the Red Hat alert: Havoc Pennington discovered a flaw in the way the dbus-daemon applies its security policy. A user with the ability to connect to the dbus-daemon may be able to execute certain method calls they should normally not have permission to access.
Alerts:
openSUSE openSUSE-SU-2012:1418-1 dbus 2012-10-31
Ubuntu USN-653-1 dbus 2008-10-14
Debian DSA-1599-1 dbus 2008-06-26
rPath rPSA-2008-0099-1 dbus 2008-03-07
Fedora FEDORA-2008-2043 dbus 2008-02-28
Red Hat RHSA-2008:0159-01 dbus 2008-02-27
SuSE SUSE-SR:2008:006 sarg, phpMyAdmin, xine, bind, dbus-1, silc-toolkit, boost 2008-03-14
Mandriva MDVSA-2008:054 dbus 2007-02-28
Fedora FEDORA-2008-2070 dbus 2008-02-28

Comments (none posted)

evolution: format string vulnerability

Package(s):evolution CVE #(s):CVE-2008-0072
Created:March 5, 2008 Updated:May 28, 2008
Description: The encrypted mail display code in evolution suffers from a format string vulnerability which could be exploited by way of a specially crafted email message.
Alerts:
rPath rPSA-2008-0105-1 evolution 2008-05-28
Mandriva MDVSA-2008:063 evolution 2007-03-06
Fedora FEDORA-2008-2292 evolution 2008-03-06
Fedora FEDORA-2008-2290 evolution 2008-03-06
Gentoo 200803-12 evolution 2008-03-05
SuSE SUSE-SA:2008:014 evolution 2008-03-14
Ubuntu USN-583-1 evolution 2008-03-05
Debian DSA-1512-1 evolution 2008-03-05
Red Hat RHSA-2008:0178-01 evolution 2008-03-05
Red Hat RHSA-2008:0177-01 evolution 2008-03-05

Comments (none posted)

firebird: multiple vulnerabilities

Package(s):firebird CVE #(s):CVE-2008-0387 CVE-2008-0467
Created:March 3, 2008 Updated:March 27, 2008
Description: From the Gentoo advisory:

Firebird does not properly handle certain types of XDR requests, resulting in an integer overflow (CVE-2008-0387). Furthermore, it is vulnerable to a buffer overflow when processing usernames (CVE-2008-0467).

A remote attacker could send specially crafted XDR requests or an overly long username to the vulnerable server, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the application.

Alerts:
Debian DSA-1529-1 firebird2 2008-03-24
Gentoo 200803-02 firebird 2008-03-02

Comments (none posted)

kernel: denial of service

Package(s):kernel CVE #(s):CVE-2007-3731
Created:March 3, 2008 Updated:March 5, 2008
Description: From the rPath advisory:

Previous versions of the Linux kernel package contain a vulnerability in the ptrace system call which allows local users to cause a Denial of Service.

Alerts:
rPath rPSA-2008-0094-1 kernel 2008-02-29

Comments (none posted)

kernel: denial of service

Package(s):kernel CVE #(s):CVE-2006-6921
Created:March 5, 2008 Updated:March 5, 2008
Description: From the Red Hat advisory: a flaw was found in the handling of zombie processes. A local user could create processes that would not be properly reaped, possibly causing a denial of service.
Alerts:
Red Hat RHSA-2008:0154-01 kernel 2008-03-05

Comments (none posted)

kernel: information disclosure

Package(s):kernel CVE #(s):CVE-2007-6207
Created:March 5, 2008 Updated:March 5, 2008
Description: From the Red Hat advisory: a flaw in the hypervisor for hosts running on Itanium architectures allowed an Intel VTi domain to read arbitrary physical memory from other Intel VTi domains, which could make information available to unauthorized users.
Alerts:
Red Hat RHSA-2008:0154-01 kernel 2008-03-05

Comments (none posted)

lighttpd: denial of service

Package(s):lighttpd CVE #(s):CVE-2008-0983
Created:February 29, 2008 Updated:July 15, 2008
Description: From the CVE entry: lighttpd 1.4.18, and possibly other versions before 1.5.0, does not properly calculate the size of a file descriptor array, which allows remote attackers to cause a denial of service (crash) via a large number of connections, which triggers an out-of-bounds access.
Alerts:
Debian DSA-1609-1 lighttpd 2008-07-15
SuSE SUSE-SR:2008:008 wireshark, otrs, xine, xgl, silc-toolkit, lighttpd, tk 2008-04-04
rPath rPSA-2008-0084-1 lighttpd 2008-02-28
Fedora FEDORA-2008-2262 lighttpd 2008-03-06
Fedora FEDORA-2008-2278 lighttpd 2008-03-06
Gentoo 200803-10 lighttpd 2008-03-05

Comments (none posted)

opera: several vulnerabilities

Package(s):opera CVE #(s):CVE-2008-1080 CVE-2008-1081 CVE-2008-1082
Created:February 29, 2008 Updated:March 5, 2008
Description: Opera version 9.26 fixes: an issue where simulated text inputs could trick users into uploading arbitrary files, image properties can no longer be used to execute scripts, and an issue where the representation of DOM attribute values could allow cross site scripting.
Alerts:
Gentoo 200803-09 opera 2008-03-04
SuSE SUSE-SA:2008:011 opera 2008-02-29

Comments (none posted)

qemu: insufficient block device address range checking

Package(s):qemu, zen CVE #(s):CVE-2008-0928
Created:February 29, 2008 Updated:October 7, 2009
Description: From Debian Security: Ian Jackson discovered that accesses beyond end of qemu emulated disk devices can result in accesses to emulator's virtual memory space accesses and thus can allow user with sufficient privilege in guest (root, as this would need modification to kernel's driver) to break out of VM.
Alerts:
Mandriva MDVSA-2009:257 qemu 2009-10-05
Debian DSA-1799-1 qemu 2009-05-11
Mandriva MDVSA-2009:016 xen 2009-01-16
Mandriva MDVSA-2008:162 qemu 2008-08-07
CentOS CESA-2008:0194 xen 2008-05-16
Red Hat RHSA-2008:0194-01 xen 2008-05-13
Fedora FEDORA-2008-2083 xen 2008-02-28
Fedora FEDORA-2008-2057 xen 2008-02-28

Comments (none posted)

thunderbird: heap overflow

Package(s):thunderbird seamonkey CVE #(s):CVE-2008-0304
Created:February 29, 2008 Updated:January 8, 2009
Description: Security research firm iDefense reported that researcher regenrecht discovered a heap-based buffer overflow vulnerability in Mozilla mail code which could potentially allow an attacker to run arbitrary code. The vulnerability is caused by allocating a buffer that can be three bytes too small in certain cases when viewing an email message with an external MIME body.
Alerts:
Debian DSA-1697-1 iceape 2009-01-07
Ubuntu USN-629-1 mozilla-thunderbird, thunderbird 2008-07-25
Debian DSA-1621-1 icedove 2008-07-27
Gentoo 200805-18 mozilla-firefox 2008-05-20
Fedora FEDORA-2008-2118 thunderbird 2008-02-28
Mandriva MDVSA-2008:062 mozilla-thunderbird 2007-03-06
Slackware SSA:2008-061-01 thunderbird 2008-03-03
Ubuntu USN-582-2 thunderbird 2008-03-06
Ubuntu USN-582-1 thunderbird 2008-02-29
Fedora FEDORA-2008-2060 thunderbird 2008-02-28

Comments (none posted)

tshark, wireshark: multiple vulnerabilities

Package(s):tshark,wireshark CVE #(s):CVE-2008-1070 CVE-2008-1071 CVE-2008-1072
Created:March 3, 2008 Updated:October 2, 2008
Description: From the rPath advisory:

Previous versions of the wireshark package are vulnerable to multiple types of Denial of Service attacks, including crashes and excessive memory consumption. It has not been determined that these vulnerabilities can be exploited to execute malicious code.

Alerts:
Red Hat RHSA-2008:0890-01 wireshark 2008-10-01
CentOS CESA-2008:0890 No RH alert RHSA-2008:0890-01 2008-10-01
rPath rPSA-2008-0212-1 tshark 2008-07-03
Fedora FEDORA-2008-3040 wireshark 2008-04-08
Fedora FEDORA-2008-2941 wireshark 2008-04-08
Gentoo 200803-32 wireshark 2008-03-24
rPath rPSA-2008-0092-1 tshark,wireshark 2008-02-29
SuSE SUSE-SR:2008:005 acroread, asterisk, cacti, compat-openssl097g, icu, libcdio, wireshark/ethereal, Jakarta, perl-tk 2008-03-06
Mandriva MDVSA-2008:057 wireshark 2007-03-03

Comments (none posted)

viewvc: multiple access violations

Package(s):viewvc CVE #(s):
Created:March 3, 2008 Updated:March 5, 2008
Description: From the Fedora advisory:

These security issues have been fixed: - omit commits of all-forbidden files from query results - disallow direct URL navigation to hidden CVSROOT folder - strip forbidden paths from revision view - don't traverse log history thru forbidden locations - honor forbiddenness via diff view path parameters

Alerts:
Fedora FEDORA-2008-2159 viewvc 2008-03-01
Fedora FEDORA-2008-2143 viewvc 2008-03-01

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