KTorrent Web Interface Vulnerable to Remote Takeover

Written by enigmax on February 28, 2009 

Two vulnerabilities have been discovered in the web interface plugin for the KDE BitTorrent client, KTorrent. A malicious attacker sending specially crafted parameters to the interface could enable both remote code execution and arbitrary torrent uploads.

ktorrentDistributed under a GNU General Public license, KTorrent is a torrent client written in C++ for KDE. Feature wise, the client can compete with other popular clients, supporting protocol encryption, UDP trackers and web-seeding to name a few.

One feature, however, is posing a security threat to the user. According to a security alert, multiple serious vulnerabilities have been found in the client.

With a severity rated as ‘High’, the vulnerabilities are to be found in the client’s web interface plugin. Since the plugin does not successfully restrict access to the clients torrent upload functionality and fails to sanitize request parameters, it is vulnerable to exploitation.

The flaws can allow a malicious remote attacker to send specially crafted parameters to the web interface. This could enable remote arbitrary torrent uploads along with the possibility of remote code execution, within the same privileges as the KTorrent process itself.

A temporary workaround solution is to disable the web interface plugin. This can be achieved by clicking “plugins” in the config menu and unchecking the “Web Interface” checkbox.

Versions affected by this issue are 2.2.8 and earlier, so users updating to the latest version are protected from these security vulnerabilities.

Previously: Pirate Bay Witness’ Wife Overwhelmed With Flowers

Next: How To Turn Customers Into Pirates

27 Responses

1 Feb 28, 2009 at 12:43 by Welshie

D’oh!

2 Feb 28, 2009 at 12:50 by Purplemess

Latest version: Check.
Web interface switched off: Check.

Furthermore, Ktorrent runs as user (unless you’ve been stupid and run it as root), it can’t really mess up your system anyway.

3 Feb 28, 2009 at 14:15 by michael

It’s a feature to increase deniability. “Copyrighted material you say? No I use it to download Linux distributions”… “Doh, must have been that security vulnerability on my web interface”

I’m gonna install Ktorrent right now and set it not to upgrade.

4 Feb 28, 2009 at 14:41 by x3dt

@ #3 michael:

lol, this is actually pretty good defense. If the “wireless defense” works, this should work even better.

“In my defense, I’m a Lin newbie, never thought it can be “haxored”, as young people say today. If it would please the court, I’d like you to ignore the 17 years of IT work in my resume.”

:)))

5 Feb 28, 2009 at 14:46 by ToddIsBored

“If it would please the court…”

haha, made me laugh enough to post my first TF comment

6 Feb 28, 2009 at 14:54 by Not O KTorrent

K What???Do people really use this???

7 Feb 28, 2009 at 14:55 by VinX

uTorrent FTW !!!

uTorrent <3

maybe i will try this .. hehe

8 Feb 28, 2009 at 15:17 by Aroll605

KDE has how many millions of line of code and how many people work on it? I think they have too much code and definitely not enough developers to watch all over it.

9 Feb 28, 2009 at 15:29 by Anonymous

“K What???Do people really use this???”

Yes, it’s a good torrent client for KDE.

10 Feb 28, 2009 at 16:04 by scrilla

who cares? ktorrent is one of those crappy clients that the amatuers and wannabe hackers that use the inferior Linux OS use.

Real torrenters use Windows and leave the noobs to the Linux! :)

11 Feb 28, 2009 at 16:28 by linuxnonfanboy

See, there was a point behind having to elevate privileges 90% of the time to function normally. Now you won’t get effected by this type of attack. Yay for an operating system that had a kernel bug for 10 years.

12 Feb 28, 2009 at 16:38 by Elonoir

>”Yay for an operating system that had a kernel bug for 10 years.”

Just to be sure for if you are bashing Linux to ‘enlighten’ windows: You know MS Windows probably has bugs in there for 20years that won’t ever get fixed right?

Just for the sake of letting you know: I currently run Windows XP.

And really: Never mind, never feed the troll monkey.

13 Feb 28, 2009 at 20:33 by Gretta

This article is really non-newsworthy:

1. A tiny portion of BT users run ktorrent.

2. Ktorrent is Linux based meaning users keep up to date with security issues because they are technically adept.

3. Ktorrent doesn’t run with root priviledges by default – meaning any hacks pulled off with this vulnerability are pointless.

4. Linux has an aplication manager that updates applications

Seriously – what gives?

14 Feb 28, 2009 at 21:14 by author is an idiot

*** NEWS FLAH!! ***

Program vulnerability in windows xp service pack 1!!!

All people with the latest version of windows xp service pack 2 and up will not be affected by this bug.

Pretty stupid huh? I guess the author of this ‘piece’ (pos that is) needs to stop smoking so much pcp before attempting to write articles.

15 Feb 28, 2009 at 21:15 by author is an idiot

^ ^ ya, ya I misspelled flash, get over it….

16 Feb 28, 2009 at 22:39 by jcidiot

well, it gets pretty boring between the rpb trials….

17 Feb 28, 2009 at 22:40 by jcidiot

*tpb

18 Feb 28, 2009 at 23:53 by ubuntu

@ #10 scrilla

“who cares? ktorrent is one of those crappy clients that the amatuers and wannabe hackers that use the inferior Linux OS use.”

“Real torrenters use Windows and leave the noobs to the Linux! :)”

Hahahahaha. I bet you are one of those that turn off Vista UAC and use uTorrent with administrative privileges.

19 Mar 01, 2009 at 03:33 by rioting_pacifist

apt-get update; apt-get upgrade and forget (other commands are available).

its a shame that the webapplet has been desgined badly but if you have an unsecured web server running you cant really expect much better
( even without this exploit you can upload a torrent containing a script called .xinitrc containing rm -fr ~/ to ~ and theres not much you can do)

perhaps some of the new kernel tricks can be employed in latter versions to drop ktorrent rights to only access certain directories ( and never set a +x bit) but the sensible thing would be to never have unsafe services open to unsecured connection (if your behind a closed firewall your prety safe even with the exploit)

20 Mar 01, 2009 at 11:19 by fleshTH

I’m slowly getting myself into linux, and i hate KDE, but for the record… this is a good article. I know of many users who are switching to ubuntu linux and use KDE (i know, that is kubuntu) because some dumbass told them it was better than gnome. However, these people were windows users and aren’t that great at working in linux yet. Also, did you read? there is no update yet, the best course of action is to disable the plugin. really people, get off your high horse.

21 Mar 01, 2009 at 12:58 by Rage

@20:
The article refers to versions 2.2.8 and earlier. The latest version is 3.2

22 Mar 01, 2009 at 15:44 by Diego

>Written by enigmax on February 28, 2009

> admin – Mon, 10/20/2008 – 18:47
> 3.1.4 released
> Several security issues in the webinterface plugin

You’re only more than 4 months late!

23 Mar 01, 2009 at 21:55 by pclinuxos

well, ktorrent is not the only torrent client for linux (transmission, deluga, azureus, etc.).
linux’s default user is not root[not like w.....s], so i don’t think this is really a big security issue.

24 Mar 02, 2009 at 08:41 by janet

it is wrong for a man have a rich woman or a woman have a wealthy man?It is an absolutely extramarital relationship. but more and more services come out on

Internet focusing on this kind of relationship.such as__S e e k r i c h . c o m___it’s the biggest dating site for wealthy and successful people.

25 Mar 02, 2009 at 19:36 by Lars

In the article it states, “Versions affected by this issue are 2.2.8 and earlier”. However, the security warning in question affects “versions <= 2.2.8″. So, 2.2.8 is not at risk according to the security warning link and according to this bug report.

http://bugs.gentoo.org/show_bug.cgi?id=244741

26 Mar 03, 2009 at 13:08 by anon

And this is news? This has been reported and fixed for ages.

27 Mar 07, 2009 at 18:30 by Linux User

Just don’t use web interface plug-in and all is well with no need to upgrade. Time to go back to sleep now.

Oh and for the windows trolls, keep being paytards Steve Ballmer just loves your money and the Black Hats love your OS as it has all the security of a Sri Lankan Cricket Team escort

:)

Responses are closed

All remaining responses will continue to be archived. Use the TorrentFreak forums if you want to discuss something.