+44 (0)203 88 020 88

Menu

Search

Cyber Security News & Articles

 

Cyber Security
News & Articles

Trusted Cyber Security Experts
25+ Years Industry Experience
Ethical, Professional & Pragmatic

Webmin utility compromised with deliberate RCE

Webmin, the web-based interface for system administration for Unix and Linux, had a remote code execution vulnerability deliberately introduced into its source code in April 2018.  It was only publicised in August 2019 when a zero day exploit was published at DefCon 27. Webmin has been installed over a million times worldwide.

The malicious code change deliberately introduced a remote code execution vulnerability into the password_change.cgi module of Webmin.  The change was first introduced in April 2018 in version 1.890. It was reverted by happy accident by the developers and then re-introduced by the attackers in a modified form into the source code in July 2018 used for the 1.900 release of Webmin.  The exploit code has been removed from version 1.930 released in August 2019.

The changed code was published on the project’s Sourceforge pages (the official download location) whereas the Github versions were not modified.  This implies that the ‘chain of custody’ of the code from the source in Github through the build servers onto the published download location on Sourceforge was compromised.

The developers have identified that their build server made use of a local cached copy of the source rather than pulling from Github for each compilation. This cache was modified by the attackers to introduce the vulnerabilities, and the timestamp of the files was modified to prevent the changes being noticed.

Why source code security is important

This incident provides a useful reminder of the importance of ensuring development systems and source code repositories are secure and protected from unauthorised changes.  The vulnerability introduced into the Webmin utility was active for over a year before it was identified and patched by the developers.

It is easy to make the assumption that in-house code is trusted and safe.  However, if the source code is not secure, it could be compromised by an attacker in order to introduce deliberate vulnerabilities and malfunctions which are then exploited at a later date.

Wise security managers ask themselves:

How do I know that no unexpected changes have been introduced into a new version of the application delivered to production servers by the development team?

This is especially important if open-source libraries or even commercial third-party libraries or components are compiled into your applications.

The PCI-DSS standard recognises these risks with requirement 6 to ‘Develop and Maintain Secure Systems.’

How to mitigate the Webmin vulnerability

If you are running version 1.900 of Webmin, the RCE is only active if you have configured

your Webmin installation to have Webmin -> Webmin Configuration -> Authentication -> Password expiry policy set to Prompt users with expired passwords to enter a new one. This option is not set by default, but if it is set, it allows remote code execution.

The vulnerability is fixed in version 1.930 Released in August 2019.

A blog post from the developer of Webmin includes some indicators of compromise to look for in your system logs.

 

 

 

Subscribe to our monthly newsletter today

If you’d like to stay up-to-date with the latest cyber security news and articles from our technical team, you can sign up to our monthly newsletter. 

We hate spam as much as you do, so we promise not to bombard you with emails. We’ll send you a single, curated email each month that contains all of our cyber security news and articles for that month.

Why Choose SecureTeam?

CREST
CCS
ISO9001
ISO27001
CE-PLUS

Customer Testimonials

“We were very impressed with the service, I will say, the vulnerability found was one our previous organisation had not picked up, which does make you wonder if anything else was missed.”

Aim Ltd Chief Technology Officer (CTO)

"Within a very tight timescale, SecureTeam managed to deliver a highly professional service efficiently. The team helped the process with regular updates and escalation where necessary. Would highly recommend"

IoT Solutions Group Limited Chief Technology Officer (CTO) & Founder

“First class service as ever. We learn something new each year! Thank you to all your team.”

Royal Haskoning DHV Service Delivery Manager

“We’ve worked with SecureTeam for a few years to conduct our testing. The team make it easy to deal with them; they are attentive and explain detailed reports in a jargon-free way that allows the less technical people to understand. I wouldn’t work with anyone else for our cyber security.”

Capital Asset Management Head of Operations

“SecureTeam provided Derbyshire's Education Data Hub with an approachable and professional service to ensure our schools were able to successfully certify for Cyber Essentials. The team provided a smooth end-to-end service and were always on hand to offer advice when necessary.”

Derbyshire County Council Team Manager Education Data Hub

“A very efficient, professional, and friendly delivery of our testing and the results. You delivered exactly what we asked for in the timeframe we needed it, while maintaining quality and integrity. A great job, done well.”

AMX Solutions IT Project Officer

“We were very pleased with the work and report provided. It was easy to translate the provided details into some actionable tasks on our end so that was great. We always appreciate the ongoing support.”

Innovez Ltd Support Officer

Get in touch today

If you’d like to see how SecureTeam can take your cybersecurity posture to the next level, we’d love to hear from you, learn about your requirements and then send you a free quotation for our services.

Our customers love our fast-turnaround, “no-nonsense” quotations – not to mention that we hate high-pressure sales tactics as much as you do.

We know that every organisation is unique, so our detailed scoping process ensures that we provide you with an accurate quotation for our services, which we trust you’ll find highly competitive.

Get in touch with us today and a member of our team will be in touch to provide you with a quotation. 

0

No products in the basket.

No products in the basket.