Home Cyber Security News Serious Vulnerability Discovered In X.Org Server Affects Major Linux and BSD Variants

Serious Vulnerability Discovered In X.Org Server Affects Major Linux and BSD Variants

by Abeerah Hashim
X.Org server vulnerability in Linux

An Indian researcher discovered an important local privilege escalation vulnerability that poses a security threat to most Linux distros and BSD variants. Exploiting the bug in the X.Org server could allow an attacker to gain root access.

Vulnerability In X.Org Server Discovered

Researcher Narendra Shinde discovered a serious vulnerability affecting multiple BSD and Linux distributions. Reportedly, X-Org server has local privilege escalation flaw that allows an attacker to elevate privileges and gain root access.

Shinde has disclosed his findings in a separate report. As stated, the x-Org server has an “arbitrary file overwrite” vulnerability. It allows an attacker to create or amend files on the target system.

“X.org X Server application is vulnerable to privilege escalation issue. X.org X Server application allows lower privileged user to create or overwrite file anywhere on system, including files owned by privileged users (ex. /etc/shadow). The attacker needs to have active console session to exploit this issue.”

According to X.org’s security advisory, the vulnerability mainly exists due to incorrect handling and validation of argument for at least two command-line parameters: -modulepath, and –logfile.

“Incorrect command-line parameter validation in the Xorg X server can lead to privilege elevation and/or arbitrary files overwrite, when the X server is running with elevated privileges (ie when Xorg is installed with the setuid bit set and started by a non-root user).”

Although, the vulnerability won’t let an attacker gain access to the system, it certainly facilitates them to gain complete control if they already have a lower privileged account. The issue received CVE-2018-14665, and mainly affects X.Org X server 1.19.0 and later.

Another researcher Matthew Hickey of the Hacker House has also shared his POC in a tweet.

X.Org Patched The Bug

X.Org server is a core graphics and windowing technology that provides the base for GNOME and KDE desktop interface suites. It forms a major component of most Linux distros and BSD variants that offer a GUI interface.

X.Org explained:

“The -modulepath argument can be used to specify an insecure path to modules that are going to be loaded in the X server, allowing to execute unprivileged code in the privileged process. The -logfile argument can be used to overwrite arbitrary files in the file system, due to incorrect checks in the parsing of the option.”

After the discovery of the vulnerability, Shinde informed X.Org and Red Hat teams of the matter. Since then, both X.Org and Red Hat stepped up to patch the bug. After that, the researcher published a coordinated disclosure on October 25, 2018.

Users can find the patch for this vulnerability on the xserver repository. If the patch isn’t available, then X.Org suggests a workaround.

“If a patched version of the X server is not available, X.Org recommends to remove the setuid bit (ie chmod 755) of the installed Xorg binary.  Note that this can cause issues if people are starting the X window system using the ‘startx’, ‘xinit’ commands or variations thereof.”

In addition, the affected distros including OpenBSD, Red Hat, Ubuntu, Debian, SUSE, CentOS, and Fedora have also published separate security advisories recommending the patches.

You may also like

Latest Hacking News

Privacy Preference Center

Necessary

The __cfduid cookie is used to identify individual clients behind a shared IP address and apply security settings on a per-client basis.

cookie_notice_accepted and gdpr[allowed_cookies] are used to identify the choices made from the user regarding cookie consent.

For example, if a visitor is in a coffee shop where there may be several infected machines, but the specific visitor's machine is trusted (for example, because they completed a challenge within your Challenge Passage period), the cookie allows Cloudflare to identify that client and not challenge them again. It does not correspond to any user ID in your web application, and does not store any personally identifiable information.

__cfduid, cookie_notice_accepted, gdpr[allowed_cookies]

Advertising

DoubleClick by Google refers to the DoubleClick Digital Marketing platform which is a separate division within Google. This is Google’s most advanced advertising tools set, which includes five interconnected platform components.

DoubleClick Campaign Manager: the ad-serving platform, called an Ad Server, that delivers ads to your customers and measures all online advertising, even across screens and channels.

DoubleClick Bid Manager – the programmatic bidding platform for bidding on high-quality ad inventory from more than 47 ad marketplaces including Google Display Network.

DoubleClick Ad Exchange: the world’s largest ad marketplace for purchasing display, video, mobile, Search and even Facebook inventory.

DoubleClick Search: is more powerful than AdWords and used for purchasing search ads across Google, Yahoo, and Bing.

DoubleClick Creative Solutions: for designing, delivering and measuring rich media (video) ads, interactive and expandable ads.

doubleclick

Analytics

The _ga is asssociated with Google Universal Analytics - which is a significant update to Google's more commonly used analytics service. This cookie is used to distinguish unique users by assigning a randomly generated number as a client identifier. It is included in each page request in a site and used to calculate visitor, session and campaign data for the sites analytics reports. By default it is set to expire after 2 years, although this is customisable by website owners.

The _gat global object is used to create and retrieve tracker objects, from which all other methods are invoked. Therefore the methods in this list should be run only off a tracker object created using the _gat global variable. All other methods should be called using the _gaq global object for asynchronous tracking.

_gid works as a user navigates between web pages, they can use the gtag.js tagging library to record information about the page the user has seen (for example, the page's URL) in Google Analytics. The gtag.js tagging library uses HTTP Cookies to "remember" the user's previous interactions with the web pages.

_ga, _gat, _gid