How to find Linux servers on your network

Updated

Latest Linux server vulnerability #

News dropped this week around a memory corruption vulnerability with a broad reach across many Linux distributions, including Ubuntu, Debian, Mint, RHEL, Fedora, CentOS, Oracle, Arch, and SUSE. Having been present-but-unseen for over 12 years now, CVE-2021-4034 (with a "high" CVSS score of 7.8) resides in the PolKit (Policy Kit) component that is installed in many Linux distributions by default. Successful exploitation of this vulnerability provides a local privilege escalation (LPE) to hand over root-level privileges to an unprivileged user. Named PwnKit by the Qualys Research Team who discovered and disclosed the vulnerability, exploitation of vulnerable systems is considered to be straightforward and can purportedly be done without leaving an audit trail.

A number of major Linux distributions, including Ubuntu and Red Hat, recently released patches to fix this vulnerability, as well as the PolKit toolkit, itself. In the event that patching is not possible or patches are not available for an affected Linux install, a mitigation is suggested by the Qualys Research Team via removing the SUID bit from the pkexec program. Patching or mitigation of vulnerable systems is recommended, particularly with publicly available exploit code now available on the Internet.

How to find Linux instances potentially vulnerable to PwnKit with runZero #

From the Asset Inventory, use the following pre-built query to locate multi-user Linux assets within your network that are potentially vulnerable to PwnKit:

os:debian or os:ubuntu or os:mint or os:raspbian or os:="red hat%" or os:fedora or os:centos or os:cloudlinux or os:oracle or os:="arch%" or os:manjaro or os:suse
Find multi-user Linux servers

As always, any prebuilt queries we create are available from our Queries Library. Check out the library for other useful inventory queries.

Written by Pearce Barry

More about Pearce Barry
Subscribe Now

Get the latest news and expert insights delivered in your inbox.

Welcome to the club! Your subscription to our newsletter is successful.


Related Articles

Rapid Response
How to find PKIX-SSH services on your network
A fork of OpenSSH called PKIX-SSH was impacted by the recently discovered regreSSHion vulnerability. Here's how to find impacted services on your...
Rapid Response
How to find Westermo devices on your network
Westermo has disclosed several vulnerabilities regarding their Lynx Industrial Ethernet switches. Here's how to find them on your network.
Rapid Response
How to find Kaspersky products with runZero
The US government has banned the sale of Kaspersky products and services. Here's how to find Kaspersky products in your network.
Rapid Response
How to find Microsoft Message Queuing (MSMQ) servers on your network
A new pre-auth use-after-free vulnerability in the Microsoft Message Queuing (MSMQ) service is rated critical. Find impacted systems now with runZero.

See Results in Minutes

Get complete visibility into IT, OT, & IoT — without agents, credentials, or hardware.

© Copyright 2024 runZero, Inc. All Rights Reserved