Home Security Apache CouchDB flaws open door to cryptocurrency miners

Vulnerabilities in the open source database software Apache CouchDB are being exploited to plant cryptocurrency miners on vulnerable systems, the security firm Trend Micro claims.

Researcher Hubert Lin said in a blog post that a remote privilege escalation flaw and a command execution vulnerability were both being exploited for this purpose.

"Due to differences in CouchDB’s parsers, exploitation of these vulnerabilities can provide attackers with duplicate keys that allow them access control — including administrator rights — within the system," Lin said. "The attackers can then use these functions to execute arbitrary code."

Patches for these flaws were issued back in November 2017.

CouchDB listens on port 5984/TCP by default. Lin said attackers were first using the command execution flaw to set up an account that had administrative privileges.

Then the newly set up account was used to exploit the remote command execution vulnerability.

A script was then downloaded and it first made sure that any competing cryptocurrency mining activity on the compromised host was killed. Then the cryptocurrency mining executable was downloaded and run.

The persistence of the downloaded cryptocurrency miner was ensured by putting cron jobs in place, Lin said.

The popularity of cryptocurrencies and the fact that such attacks do not call attention to themselves in the manner that malware like ransomware does are behind the growing popularity of using mining scripts.

Lin pointed out that CouchDB was relatively popular. "It ranked 28th out of 300 according to DB-engines rankings of database management systems – and is used by some larger organisations, notably the BBC for their content platforms," he said.

"This means that attackers have access to a fairly large active source of resources for their mining operations."

But he said the the system being targeted was not as important as the existence of vulnerabilities that could be exploited.

"It does not really matter whether it is CouchDB or other database systems such as MongoDB. As long as there’s a chance to exploit an RCE (remote code execution), the threat actors will take advantage of it."


With 50+ Speakers, 300+ senior data and analytics executives, over 3 exciting days you will indulge in all things data and analytics before leaving with strategic takeaways that will catapult you ahead on your journey

· CDAO Sydney is designed to bring together senior executives in data and analytics from progressive organisations
· Improve operations and services
· Future proof your organisation in this rapidly changing technological landscape
· CDAO Sydney 2-4 April 2019
· Don’t miss out! Register Today!
· Want to find out more? Download the Agenda



Australia is a cyber espionage hot spot.

As we automate, script and move to the cloud, more and more businesses are reliant on infrastructure that has the high potential to be exposed to risk.

It only takes one awry email to expose an accounts’ payable process, and for cyber attackers to cost a business thousands of dollars.

In the free white paper ‘6 Steps to Improve your Business Cyber Security’ you’ll learn some simple steps you should be taking to prevent devastating and malicious cyber attacks from destroying your business.

Cyber security can no longer be ignored, in this white paper you’ll learn:

· How does business security get breached?
· What can it cost to get it wrong?
· 6 actionable tips


Sam Varghese

website statistics

Sam Varghese has been writing for iTWire since 2006, a year after the sitecame into existence. For nearly a decade thereafter, he wrote mostly about free and open source software, based on his own use of this genre of software. Since May 2016, he has been writing across many areas of technology. He has been a journalist for nearly 40 years in India (Indian Express and Deccan Herald), the UAE (Khaleej Times) and Australia (Daily Commercial News (now defunct) and The Age). His personal blog is titled Irregular Expression.


Popular News




Sponsored News