LWN.net Logo

Security

Striking back against web attackers

By Jake Edge
June 23, 2010

There are probably very few system administrators who haven't at least contemplated some kind of retribution against attackers. Some may have envisioned something physical—perhaps involving red hot pokers—but it's likely that the majority considered extracting a payback via the same route they were attacked: the internet. A French company has taken that idea to its logical extreme by presenting thirteen "zero-day" exploits against tools used by attackers at the SyScan security conference, which was recently held in Singapore.

Many attackers use various applications—exploit packs and toolkits—that they install on the web sites they have compromised. These applications launch attacks against the web browsers of site visitors by probing for vulnerabilities, often in plugins like PDF or Java, and using those it finds to compromise the visitor's machine. TEHTRI-Security investigated several of these applications and found exploitable vulnerabilities in half a dozen of them. Unlike what it might have done for more benign applications, TEHTRI released the information at the conference with no warning to the projects and, not surprisingly, those who usually clamor for "responsible disclosure" were rather mute.

These exploit toolkits typically have two components: the payload delivery mechanism and an administrative interface. Payload delivery runs on the compromised web site, looks at the browser to try to find vulnerabilities, and then delivers the appropriate exploit. The web-based administrative interface often aggregates information from multiple compromised web sites and allows the attacker to see what browsers were successfully attacked, which vulnerabilities were used, where the user came from, and so on—essentially a web analytics tool for malware purveyors. TEHTRI found vulnerabilities in both of these components, which could lead to administrative interface defacement, attack management database destruction, authentication cookie disclosure, disclosure of attackers' IP addresses, and more.

The kinds of vulnerabilities that were found read like a laundry list of the most common web application flaws: cross-site scripting, SQL injection, cross-site request forgery, remote file disclosure, authentication bypass, and so on. Even those who exploit web application flaws for a "living"—exploit packs typically cost $500-1000 or more—seem to be unable or unwilling to write code that avoids those same flaws. It is rather ironic that the victims of these web attacks can turn around and use the same techniques to attack the attacker.

As TEHTRI and others point out, though, it may well be illegal to turn the tables on the attackers, no matter how satisfying—and reasonable—the idea seems. Self-defense is likely not a defense against computer crime statutes, at least in many jurisdictions. The administrative interfaces typically run on systems under the control of the attacker, but not necessarily a host that is "owned" (in the legal sense) by them. It is probable that an unsuspecting victim's server has been compromised to the extent that the web interface could be installed, which makes an attack against it even riskier.

While some specifics were given at the SyScan talk, TEHTRI is keeping the details of these vulnerabilities (and others that it hints about) to itself for now. There is another SyScan conference in early July (in Hangzhou, China) where TEHTRI's Laurent Oudot is once again presenting on this topic so, in order to keep up the interest in the talk, "it has been decided that we would not disclose the whole content of our findings before this upcoming event", he said. As with much security research, TEHTRI clearly sees these vulnerabilities as a marketing tool, and is, unfortunately in some ways, treating them as such. On the other hand, it's hard to feel much in the way of sympathy for the developers or users of the tools, so disclosure of the flaws, and how to exploit them, is not a particularly high priority.

Given that there aren't enough details, yet, to actually strike back against attackers using these exploit toolkits, there is some time to consider the ramifications of "defensive attacks". Computer crime statutes are typically written rather loosely, such that any access other than what the site owner wants can be considered a violation. As various folks have found out, intent means very little when it comes to computer "crime". In addition, judges and lawyers are not terribly savvy about these technical issues, which makes it that much harder for "white hats" to defend themselves. All of that makes it extremely risky for anyone to use these exploits (or other offensive methods) against attackers.

One way to use the vulnerabilities that TEHTRI has found would be by, or in conjunction with, law enforcement. Exploiting some of those holes could lead to other systems under the control of the attacker, potentially including a host that can be associated with a specific individual or group. That could lead to prosecution, and possibly unravel a larger network of attackers. Unfortunately, except for high-profile attacks, there seem to be few resources available to track down and prosecute these crimes.

In the end, the lasting legacy of these vulnerabilities is likely to be their amusement value. It's probably too risky for "white hats" to use them, and those who could use them without fear of prosecution (e.g. police) don't have enough time, money, or interest to do so. That's sad in many ways, and disappointing to system administrators who would like to extract a small measure of retribution, but it's also hard to see it changing anytime soon.

Comments (none posted)

Brief items

Quotes of the week

With this information, it is possible to reconstruct what would appear to be [NY Times CEO] Janet Robinson's E-mail address, with one missing letter. It only remains to try all 26 combinations to see which one is accepted by the NY Times mail server.
-- Rajstennaj Barrabas on "How not to redact images"

I mean, even IPSEC RFC's are easier for me to understand, and that's saying a lot...
-- Linux kernel hacker Ted Ts'o complains about SELinux complexity

Comments (none posted)

Researcher Builds Mock Botnet Of 'Twilight'-Loving Android Users (Forbes)

Forbes reports from Jon Oberheide's SummerCon talk on Android security. "Oberheide, who works for security startup Scio Security, developed an application called 'RootStrap' to demonstrate that trust problem for Android apps. After it's installed, Rootstrap periodically 'phones home' to check for any new code that Oberheide wants to add to the program, including any hidden control program or 'rootkit' that he wished to install--hence the program's name. 'This is probably the most effective way to build a mobile botnet,' Oberheide told SummerCon's audience of hackers and security researchers." The article links to the slides from the presentation which contain some more hard information.

Comments (23 posted)

https-everywhere from the EFF

The Electronic Frontier Foundation has released a beta version of https-everywhere, a Firefox extension which causes the browser to use SSL whenever possible. "Many sites on the web offer some limited support for encryption over HTTPS, but make it difficult to use. For instance, they may default to unencrypted HTTP, or fill encrypted pages with links that go back to the unencrypted site. The HTTPS Everywhere extension fixes these problems by rewriting all requests to these sites to HTTPS."

Comments (26 posted)

Linux security summit schedule now available

The 2010 Linux security summit, which will be held just prior to LinuxCon in Boston on August 9, has announced the main talks that will be presented. Speakers include Dan Walsh, Stephen Hemminger, Elena Reshetova, Brad Spengler, Mimi Zohar, Kees Cook, and others. "The event is open to all registered LinuxCon attendees. You do not have to be a "security person" to attend -- we're seeking a diverse range of attendees, and welcome the participation of general developers, researchers, operations, and end-users. There will be panel and lightning talks sessions in addition to brief, selected presentations, with a strong focus on discussion." Click below for the full announcement.

Full Story (comments: none)

New vulnerabilities

beanstalkd: unauthorized execution of beanstalk client commands

Package(s):beanstalkd CVE #(s):
Created:June 22, 2010 Updated:June 23, 2010
Description: From the Red Hat bugzilla:

Graham Barr reported that beanstalkd v1.4.5 and earlier, improperly sanitized job data, sent together with put command from client. A remote attacker, providing a specially-crafted job data in request, could use this flaw to bypass intended beanstalk client commands dispatch mechanism, leading to unauthorized execution of beanstalk client commands.

Alerts:
Fedora FEDORA-2010-9656 2010-06-07
Fedora FEDORA-2010-9570 2010-06-07

Comments (none posted)

cups: multiple vulnerabilities

Package(s):cups CVE #(s):CVE-2010-0540 CVE-2010-0542 CVE-2010-1748
Created:June 18, 2010 Updated:March 2, 2011
Description: From the Red Hat advisory:

A missing memory allocation failure check flaw, leading to a NULL pointer dereference, was found in the CUPS "texttops" filter. An attacker could create a malicious text file that would cause "texttops" to crash or, potentially, execute arbitrary code as the "lp" user if the file was printed. (CVE-2010-0542)

A Cross-Site Request Forgery (CSRF) issue was found in the CUPS web interface. If a remote attacker could trick a user, who is logged into the CUPS web interface as an administrator, into visiting a specially-crafted website, the attacker could reconfigure and disable CUPS, and gain access to print jobs and system files. (CVE-2010-0540)

Note: As a result of the fix for CVE-2010-0540, cookies must now be enabled in your web browser to use the CUPS web interface.

An uninitialized memory read issue was found in the CUPS web interface. If an attacker had access to the CUPS web interface, they could use a specially-crafted URL to leverage this flaw to read a limited amount of memory from the cupsd process, possibly obtaining sensitive information. (CVE-2010-1748)

Alerts:
Debian DSA-2176-1 2011-03-02
SUSE SUSE-SR:2010:023 2010-12-08
openSUSE openSUSE-SU-2010:1018-1 2010-12-06
Mandriva MDVSA-2010:234 2010-11-15
Mandriva MDVSA-2010:233 2010-11-15
Mandriva MDVSA-2010:232 2010-11-15
CentOS CESA-2010:0490 2010-08-16
Fedora FEDORA-2010-10101 2010-06-21
CentOS CESA-2010:0490 2010-07-21
Pardus 2010-95 2010-07-08
Fedora FEDORA-2010-10066 2010-06-21
Ubuntu USN-952-1 2010-06-21
CentOS CESA-2010:0490 2010-06-19
Red Hat RHSA-2010:0490-01 2010-06-17
Fedora FEDORA-2010-10388 2010-06-25
Slackware SSA:2010-176-05 2010-06-28
Gentoo 201207-10 2012-07-09

Comments (none posted)

drupal-cck: access bypass

Package(s):drupal-cck CVE #(s):
Created:June 22, 2010 Updated:October 14, 2010
Description: From the Drupal advisory:

The Content Construction Kit (CCK) project is a set of modules that allows you to add custom fields to nodes using a web browser.

The CCK "Node Reference" module can be configured to display referenced nodes as hidden, title, teaser or full view. Node access was not checked when displaying these which could expose view access on controlled nodes to unprivileged users.

In addition, Node Reference provides a backend URL that is used for asynchronous requests by the "autocomplete" widget to locate nodes the user can reference. This was not checking that the user had field level access to the source field, allowing direct queries to the backend URL to return node titles and IDs which the user would otherwise be unable to access. Note that as Drupal 5 CCK does not have any field access control functionality, this issue only applies to the Drupal 6 version.

Alerts:
Fedora FEDORA-2010-15707 2010-10-05
Fedora FEDORA-2010-15737 2010-10-05
Fedora FEDORA-2010-10127 2010-06-21
Fedora FEDORA-2010-10176 2010-06-21
Fedora FEDORA-2010-10200 2010-06-21

Comments (none posted)

drupal-views: multiple vulnerabilities

Package(s):drupal-views CVE #(s):
Created:June 22, 2010 Updated:June 23, 2010
Description: Drupal has reported multiple vulnerabilities in the views module, including cross-site request forgery and cross-site scripting.
Alerts:
Fedora FEDORA-2010-10197 2010-06-21
Fedora FEDORA-2010-10124 2010-06-21
Fedora FEDORA-2010-10215 2010-06-21

Comments (none posted)

fastjar: overwrite arbitrary files

Package(s):fastjar CVE #(s):CVE-2010-0831
Created:June 22, 2010 Updated:June 23, 2010
Description: From the Ubuntu advisory:

Dan Rosenberg discovered that fastjar incorrectly handled file paths containing ".." when unpacking archives. If a user or an automated system were tricked into unpacking a specially crafted jar file, arbitrary files could be overwritten with user privileges.

Alerts:
Mandriva MDVSA-2010:122 2010-06-22
Ubuntu USN-953-1 2010-06-21

Comments (none posted)

firefox et al: multiple vulnerabilities

Package(s):firefox thunderbird seamonkey CVE #(s):CVE-2010-1121 CVE-2010-1125 CVE-2010-1196 CVE-2010-1197 CVE-2010-1198 CVE-2010-1199 CVE-2010-1200 CVE-2010-1202 CVE-2010-1203
Created:June 23, 2010 Updated:August 30, 2010
Description: The firefox 3.6.4 release contains fixes for several new vulnerabilities, some of which may be remotely exploitable.
Alerts:
MeeGo MeeGo-SA-10:12 2010-08-03
CentOS CESA-2010:0499 2010-08-16
Pardus 2010-107 2010-08-11
CentOS CESA-2010:0544 2010-08-06
CentOS CESA-2010:0500 2010-08-06
Pardus 2010-102 2010-08-02
Ubuntu USN-930-5 2010-07-23
Ubuntu USN-930-4 2010-07-23
Fedora FEDORA-2010-11361 2010-07-23
Fedora FEDORA-2010-11361 2010-07-23
Pardus 2010-89 2010-06-30
Slackware SSA:2010-176-04 2010-06-28
CentOS CESA-2010:0501 2010-06-24
Mandriva MDVSA-2010:126 2010-06-24
Mandriva MDVSA-2010:125 2010-06-24
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Fedora FEDORA-2010-10363 2010-06-24
CentOS CESA-2010:0545 2010-07-22
openSUSE openSUSE-SU-2010:0358-2 2010-06-22
Ubuntu USN-930-2 2010-06-29
Ubuntu USN-930-1 2010-06-29
Slackware SSA:2010-176-03 2010-06-28
Fedora FEDORA-2010-10344 2010-06-24
Fedora FEDORA-2010-10329 2010-06-24
CentOS CESA-2010:0499 2010-07-21
Red Hat RHSA-2010:0545-01 2010-07-20
SUSE SUSE-SA:2010:030 2010-07-09
Slackware SSA:2010-176-02 2010-06-28
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Slackware SSA:2010-202-03 2010-07-22
Slackware SSA:2010-202-02 2010-07-22
Ubuntu USN-943-1 2010-07-06
Ubuntu USN-930-3 2010-06-30
Debian DSA-2064-1 2010-06-27
Fedora FEDORA-2010-10361 2010-06-24
Red Hat RHSA-2010:0499-01 2010-06-22
Red Hat RHSA-2010:0501-01 2010-06-22
Red Hat RHSA-2010:0544-01 2010-07-20
Pardus 2010-92 2010-06-30
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Fedora FEDORA-2010-10361 2010-06-24
Fedora FEDORA-2010-10344 2010-06-24
Red Hat RHSA-2010:0500-01 2010-06-22
Gentoo 201301-01 2013-01-07

Comments (none posted)

moodle: cross-site scripting

Package(s):moodle CVE #(s):CVE-2010-2228 CVE-2010-2229 CVE-2010-2230 CVE-2010-2231
Created:June 23, 2010 Updated:October 11, 2010
Description: The moodle 1.8.13 and 1.9.9 releases fix four different cross-site scripting vulnerabilities.
Alerts:
Debian DSA-2115-2 2010-10-11
SUSE SUSE-SR:2010:014 2010-08-02
Debian DSA-2115-1 2010-09-29
openSUSE openSUSE-SU-2010:0365-1 2010-07-12
Fedora FEDORA-2010-10321 2010-06-23
Fedora FEDORA-2010-10291 2010-06-23
Fedora FEDORA-2010-10286 2010-06-23

Comments (none posted)

opie: denial of service

Package(s):opie CVE #(s):CVE-2010-1938
Created:June 22, 2010 Updated:July 21, 2011
Description: From the Ubuntu advisory:

Maksymilian Arciemowicz and Adam Zabrocki discovered that OPIE incorrectly handled long usernames. A remote attacker could exploit this with a crafted username and make applications linked against libopie crash, leading to a denial of service.

Alerts:
Debian DSA-2281-1 2011-07-21
Ubuntu USN-955-2 2010-06-21
Ubuntu USN-955-1 2010-06-21

Comments (none posted)

pmount: insecure temporary file

Package(s):pmount CVE #(s):CVE-2010-2192
Created:June 18, 2010 Updated:June 23, 2010
Description: From the Debian advisory:

Dan Rosenberg discovered that pmount, a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry, creates files in /var/lock insecurely. A local attacker could overwrite arbitrary files utilising a symlink attack.

Alerts:
Debian DSA-2063-1 2010-06-17

Comments (none posted)

squirrelmail: unauthorized port scanning

Package(s):squirrelmail CVE #(s):CVE-2010-1637
Created:June 21, 2010 Updated:June 23, 2010
Description: From the Mandriva advisory:

A vulnerability was reported in the SquirrelMail Mail Fetch plugin, wherein (when the plugin is activated by the administrator) a user is allowed to specify (without restriction) any port number for their external POP account settings. While the intention is to allow users to access POP3 servers using non-standard ports, this also allows malicious users to effectively port-scan any server through their SquirrelMail service (especially note that when a SquirrelMail server resides on a network behind a firewall, it may allow the user to explore the network topography (DNS scan) and services available (port scan) on the inside of (behind) that firewall). As this vulnerability is only exploitable post-authentication, and better more specific port scanning tools are freely available, we consider this vulnerability to be of very low severity.

Alerts:
Fedora FEDORA-2010-10264 2010-06-22
Fedora FEDORA-2010-10244 2010-06-22
Fedora FEDORA-2010-10259 2010-06-22
Mandriva MDVSA-2010:120 2010-06-21
Red Hat RHSA-2012:0103-01 2012-02-08
CentOS CESA-2012:0103 2012-02-08
CentOS CESA-2012:0103 2012-02-08
Oracle ELSA-2012-0103 2012-02-09
Oracle ELSA-2012-0103 2012-02-09
Scientific Linux SL-squi-20120208 2012-02-08

Comments (none posted)

tiff: multiple vulnerabilities

Package(s):tiff CVE #(s):CVE-2010-1411 CVE-2010-2065 CVE-2010-2067
Created:June 22, 2010 Updated:March 8, 2011
Description: From the Ubuntu advisory:

Kevin Finisterre discovered that the TIFF library did not correctly handle certain image structures. If a user or automated system were tricked into opening a specially crafted TIFF image, a remote attacker could execute arbitrary code with user privileges, or crash the application, leading to a denial of service. (CVE-2010-1411)

Dan Rosenberg and Sauli Pahlman discovered multiple flaws in the TIFF library. If a user or automated system were into opening a specially crafted TIFF image, a remote attacker could execute arbitrary code with user privileges, or crash the application, leading to a denial of service. (CVE-2010-2065, CVE-2010-2067)

Alerts:
Mandriva MDVSA-2011:043 2011-03-08
MeeGo MeeGo-SA-10:20 2010-08-03
rPath rPSA-2010-0064-1 2010-10-17
CentOS CESA-2010:0520 2010-08-16
Mandriva MDVSA-2010:146 2010-08-06
Mandriva MDVSA-2010:145 2010-08-06
Debian DSA-2084-1 2010-08-03
SUSE SUSE-SR:2010:014 2010-08-02
CentOS CESA-2010:0519 2010-07-21
CentOS CESA-2010:0519 2010-07-14
Red Hat RHSA-2010:0519-01 2010-07-08
Fedora FEDORA-2010-10469 2010-06-28
Fedora FEDORA-2010-10460 2010-06-28
Fedora FEDORA-2010-10334 2010-06-24
Fedora FEDORA-2010-10359 2010-06-24
Slackware SSA:2010-180-02 2010-06-30
Ubuntu USN-954-1 2010-06-21
openSUSE openSUSE-SU-2010:0420-1 2010-07-22
openSUSE openSUSE-SU-2010:0387-1 2010-07-16
Red Hat RHSA-2010:0520-01 2010-07-08
Fedora FEDORA-2010-10333 2010-06-24
Oracle ELSA-2012-0468 2012-04-12
Gentoo 201209-02 2012-09-23

Comments (none posted)

znc: segfault under certain conditions

Package(s):znc CVE #(s):
Created:June 21, 2010 Updated:June 23, 2010
Description: From the Red Hat bugzilla:

A Debian bug report noted that ZNC would segfault under certain conditions, such as clicking "traffic" in the webadmin pages or issuing the traffic command on the /znc shell.

Alerts:
Fedora FEDORA-2010-10082 2010-06-21
Fedora FEDORA-2010-10078 2010-06-21
Fedora FEDORA-2010-10042 2010-06-21

Comments (none posted)

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

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