CVE-2023-42454CWE-200

SQLpage vulnerable to public exposure of database credentials

Critical · published September 18, 2023

CVSS v3.1
10.0
EPSS
1%
Percentile
54.2
In the wild
Unconfirmed
What it is

🚨 A publicly exposed SQLpage instance is like leaving the keys to your database on the welcome mat — anyone could just walk in and grab your connection info! 🔥 Think of SQLpage as a restaurant that has its chef's secret recipe book left out on the counter. If anyone can just waltz in and take a peek, they can replicate the whole menu! An attacker can easily retrieve your database connection details and connect directly to your database, leading to potential data breaches, unauthorized access to sensitive data, and even complete control over the database. This is absolutely devastating for your application and can result in significant reputational damage.

Put simply

Think of SQLpage as a restaurant that has its chef's secret recipe book left out on the counter. If anyone can just waltz in and take a peek, they can replicate the whole menu! This vulnerability occurs in SQLpage versions prior to 0.11.1, where the database connection string is stored in the publicly accessible `sqlpage/sqlpage.json` file instead of an environment variable, allowing attackers to easily extract sensitive information.

What to do

An attacker can easily retrieve your database connection details and connect directly to your database, leading to potential data breaches, unauthorized access to sensitive data, and even complete control over the database. This is absolutely devastating for your application and can result in significant reputational damage. Upgrade SQLpage to version 0.11.1 immediately. Additionally, move your database connection string to an environment variable and ensure that your web_root is set to a secure directory that is not a parent of the SQLPage configuration directory. Avoid exposing your database publicly at all costs! You've got this! Implement these changes and you'll secure your database in no time! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00742 · 54.2th percentile
Weakness
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
Published
2023-09-18T21:36Z
EPSS history
Timeline
  • 18 SEP 21:36Z
    SQLpage vulnerable to public exposure of database credentials
    cvelistv5