CVE-2020-8445

In OSSEC-HIDS 2.7 through 3.5.0, the OS_CleanMSG function in ossec-analysisd doesn't remove or encode terminal control characters or newlines from processed…

published January 30, 2020

CVSS
—
EPSS
2%
Percentile
83.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky little issue with log messages could let attackers have their way! OSSEC-HIDS versions 2.7 through 3.5.0 are vulnerable to unwanted surprises due to unfiltered terminal control characters. 🔍 Think of it like a restaurant where the chef doesn't check the ingredients before serving. A bad cook could slip in something nasty, and before you know it, the whole dinner party is in chaos! An attacker could inject malicious commands or hidden event layers into your OSSEC logs, obscuring critical alerts and making it hard to detect malicious activity. This could create a perfect storm for bad actors to guise their actions while you think everything is going smoothly!

Put simply

Think of it like a restaurant where the chef doesn't check the ingredients before serving. A bad cook could slip in something nasty, and before you know it, the whole dinner party is in chaos! The vulnerability lies in the OS_CleanMSG function of ossec-analysisd which fails to sanitize terminal control characters and newlines from log messages. This oversight can allow an attacker to manipulate logged data, leading to potential command execution or event injection when viewed in vulnerable terminals.

What to do

An attacker could inject malicious commands or hidden event layers into your OSSEC logs, obscuring critical alerts and making it hard to detect malicious activity. This could create a perfect storm for bad actors to guise their actions while you think everything is going smoothly! To mitigate this, upgrade your OSSEC-HIDS to version 3.5.1 or above. Additionally, ensure you review and sanitize log messages to prevent any control characters from sneaking in. Regular log audits can help catch any suspicious activity! You’ve got this! With the right upgrades and a bit of vigilance, you can lock this down tight! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02277 · 83.0th percentile
Published
2020-01-30T00:33Z
EPSS history
Timeline
  • 30 JAN 00:33Z
    In OSSEC-HIDS 2.7 through 3.5.0, the OS_CleanMSG function in ossec-analysisd doesn't remove or encode terminal control characters or newlines from processed…
    cvelistv5