Team OS : Your Only Destination To Custom OS !!

Welcome to TeamOS Community, Register or Login to the Community to Download Torrents, Get Access to Shoutbox, Post Replies, Use Search Engine and many more features. Register Today!

Tech News qBittorrent Web UI Exploited to Mine Cryptocurrency: Here’s How to Fix

qBittorrent is one of the most popular torrent clients around but taking time to properly configure security surrounding its web interface shouldn't be overlooked. A combination of unchanged default credentials and UPnP settings allowed an attacker to install Monero mining software on a user's PC. Fortunately the dangers are mitigated with a few easy but crucial steps.


While BitTorrent client functionality hasn’t fundamentally changed over the past 20 years, developers of leading clients haven’t let their software stagnate.
A good example is the excellent qBittorrent, a feature-rich open source client which still receives regular updates. In common with similar clients, qBittorent can be found on GitHub along with its source and installation instructions.
Elsewhere on the same platform, users were recently trying to work out how a standard qBittorrent install suddenly led to the appearance of unwanted cryptocurrency mining software on the same machine.

Proxmox and LXC

For those unfamiliar with Proxmox VE, it’s an environment for virtual machines that once tried becomes very useful, extremely quickly. It’s also free for mere mortals and in most circumstances, very easy to install and get up and running.

With help from various Proxmox ‘helper scripts’ offered by tteck on GitHub (small sample to the right), even beginners can install any of dozens of available software packages in a matter of seconds using LXC containers.
Even if none of that makes sense, it doesn’t matter. Those who want qBittorrent installed, for example, can copy and paste a single line of text into Proxmox…and that’s it. Given that the whole process is almost always flawless, user issues are very rare, so to hear of a possible malware infection came as a real shock recently

Cryptominer Discovery

In summary, a Proxmox user deployed a tteck script to install qBittorrent and then a month later found his machine being worked hard by cryptomining software known as xmrig. While he investigated the problem, tteck removed the qBittorrent LXC script as a basic precaution, but it soon became clear that neither Proxmox or tteck’s script had anything to do with the problem.
The unwelcome software was indeed installed maliciously, but due to a series of avoidable events, rather than a genius hack.
When a qBittorrent installation like this completes and the software is launched, access to qBittorent takes place through a web interface accessible from most web browsers. By default, qBittorrent uses port 8080 and since many users like to access their torrent clients from remote networks, qBittorrent uses UPnP (Universal Plug and Play) to automate port forwarding, thereby exposing the web interface to the internet.



Having this working in record time is all very nice, but that doesn’t mean it’s safe. To ensure that only the operator of the client can access the web interface, qBittorrent allows the user to configure a username and a password for authentication purposes.
This generally means that random passers-by will need to possess these credentials before being able to do damage. In this case, the default admin username and password were not changed and that allowed an attacker to easily access the web interface.

Attacker Told qBittorrent to Run an External Program

To allow users to automate various tasks related to downloading and organizing their files, qBittorrent has a feature that can automatically run an external program when a torrent is added and/or when a torrent is finished.
The options here are limited only by the imagination and skill of the user but unfortunately the same applies to any attacker with access to the client’s web interface.



In this case the attacker told the qBittorrent client to run a basic script on completion of a torrent. The script accessed the domain from where it downloaded a file called update.sh and then ran it. The consequences of that are explained in detail by tteck, but the main points are a) unauthorized cryptomining on the host machine and b) the attacker maintaining root access via SSH key authentication.

Easily Avoided

The default admin username for qBittorrent is ‘admin’ while the default password is ‘adminadmin’. Had these common-knowledge defaults been changed following install, the attacker would still have found the web interface but would’ve had no useful credentials for conventional access.
More fundamentally, possession of the correct credentials would’ve had limited value if the qBittorrent client hadn’t used UPnP to expose the web interface in the first place. Taking another step back, if UPnP hadn’t been enabled in the user’s router, qBittorrent would’ve had no access to UPnP, and wouldn’t have been able to forward ports or expose the interface to the internet.
In summary: disable UPnP in the router and only enable it once its function is fully understood and when absolutely necessary. Never leave default passwords unchanged, and if something doesn’t need to be exposed to the internet, don’t expose it unnecessarily.
Finally, it’s worth mentioning that tteck‘s response, to a problem that had nothing to do with Proxmox or his scripts, has been first class. Anyone installing the qBittorrent LXC from here will find the default admin password changed and UPnP disabled automatically.
Any time saved can be spent on automated installs of Plex, Tautulli, Emby, Jellyfin, Jellyseerr, Overseerr, Navidrome, Bazarr, Lidarr, Prowlarr, Radarr, Readarr, Sonarr, Tdarr, Whisparr, and many, many more.

Proxmox: An Open Source Type 1 Hypervisor


Source: torrentfreak
 
Last edited by a moderator:

Silencer711

Member
Downloaded
24.8 GB
Uploaded
307 GB
Ratio
12.36
Seedbonus
2,226
Upload Count
0 (0)
Member for 3 years
I just want to say that ever since I read this, a week or two ago maybe? I have disabled that option in qBittorrent and manually opened the port in my router's settings. Better to be safe than to "blindly trust" in an "auto" mode for some things. Thanks a ton for the education :)
 

romanov80

✅ Verified Member
Member
Downloaded
351.7 GB
Uploaded
15.4 TB
Ratio
44.77
Seedbonus
96,706
Upload Count
0 (0)
Member for 6 years
hmm i started using tixati.... uninstall my utorrent. don't know why my utorrent can't downloading any torrent from here anymore. same with qbittorrent
 

pascalwil

✅ Verified Member
Member
Downloaded
1.3 TB
Uploaded
36.2 TB
Ratio
28.55
Seedbonus
22,783
Upload Count
0 (0)
Member for 8 years
This problem is related to the use of qBittorrent through the web interface only. Right?
No concern when using the prog? Especially the portable prog?

Cheers
 

Twistty

✅ Verified Member
Member
Downloaded
20.4 GB
Uploaded
7.4 TB
Ratio
372
Seedbonus
81,441
Upload Count
0 (0)
Member for 8 years
"qBittorrent through the web interface only"
I believe this post is a bit outdated now.
Yes it was for the web interface only, but seems patched in v4.6.2?
 

pascalwil

✅ Verified Member
Member
Downloaded
1.3 TB
Uploaded
36.2 TB
Ratio
28.55
Seedbonus
22,783
Upload Count
0 (0)
Member for 8 years
Thanks @Twistty for your reply.
I take it it's safe to keep using qBittorrent 4.5.2 Portable.

Cheers
 

Twistty

✅ Verified Member
Member
Downloaded
20.4 GB
Uploaded
7.4 TB
Ratio
372
Seedbonus
81,441
Upload Count
0 (0)
Member for 8 years
@pascalwil
v4.6.0 was the first to address the WebUI credentials (aka "adminadmin") when exposing the WebUI to the Internet.
v4.6.1 - Further added some security features to the WebUI.
v4.6.2 - Fixed a WebUI JS memory leak.
You should update your app - IMHO.....
 

pascalwil

✅ Verified Member
Member
Downloaded
1.3 TB
Uploaded
36.2 TB
Ratio
28.55
Seedbonus
22,783
Upload Count
0 (0)
Member for 8 years
Thanks @Twistty for your advice.
But I'm not using WebUI but the portable prog which is safe I believe from the reading.
A good option for everyone to avoid the WebUI issue and a good practice when you want to share the prog between different OSs be on the same PC or different ones!

Having said that I will use v4.6.2 if I find a portable version.

Edit:
v4.6.2 downloaded. But portable version.
Have followed your advice

Cheers
 
Last edited:
Top