CVE-2022-35942CWE-89

loopback-connector-postgresql Vulnerable to Improper Sanitization of `contains` Filter

Critical · published August 12, 2022

CVSS v3.1
9.3
EPSS
1%
Percentile
49.9
In the wild
Unconfirmed
What it is

🚨 Improper input validation in the `contains` LoopBack filter might just hand attackers the keys to your database! 🔥 Think of this like a chef who allows customers to write their own recipes without checking for any hidden ingredient — if they slip in something spicy, it could ruin the entire dish. This vulnerability lets malicious input sneak into SQL commands, potentially corrupting your data. An attacker could leverage this flaw to execute arbitrary SQL commands, leading to devastating consequences such as unauthorized data access, corruption, or even complete database takeover. Your confidential information could be exposed, leaving your entire operation vulnerable to chaos!

Put simply

Think of this like a chef who allows customers to write their own recipes without checking for any hidden ingredient — if they slip in something spicy, it could ruin the entire dish. This vulnerability lets malicious input sneak into SQL commands, potentially corrupting your data. This vulnerability arises from the Postgres connector improperly handling the `contains` LoopBack filter when extended properties are enabled, allowing malicious input to be executed as SQL statements.

What to do

An attacker could leverage this flaw to execute arbitrary SQL commands, leading to devastating consequences such as unauthorized data access, corruption, or even complete database takeover. Your confidential information could be exposed, leaving your entire operation vulnerable to chaos! To protect your data, patch to version 5.5.1 immediately. If upgrading isn’t possible, disable the `allowExtendedProperties` setting in your DataSource configuration. Additionally, ensure you sanitize any user input passed directly to the connector functions for the `contains` LoopBack filter. You’ve got this! By following these steps, you’ll be stepping up your security game like a true hero of the internet! 🛡️

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00638 · 49.9th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2022-08-12T22:25Z
EPSS history
Timeline
  • 12 AUG 22:25Z
    loopback-connector-postgresql Vulnerable to Improper Sanitization of `contains` Filter
    cvelistv5