Exposure of Sensitive Information to an Unauthorized Actor Affecting sqlpage package, versions <0.14.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SQLPAGE-5905945
  • published26 Apr 2024
  • disclosed18 Sept 2023
  • creditUnknown

Introduced: 18 Sep 2023

CVE-2023-42454  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade sqlpage to version 0.14.0 or higher.

Overview

Affected versions of this package are vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in the sqlpage/sqlpage.json configuration file. An attacker can retrieve database connection information from SQLPage and use it to connect to the database directly.

Note: This is only exploitable if the SQLpage instance and the database are both exposed publicly.

In order to exploit this vulnerability, the following conditions have to be met:

  1. the SQLPage version is older than v0.11.1

  2. the SQLPage instance is exposed publicly

  3. the database connection string is specified in the sqlpage/sqlpage.json configuration file (not in an environment variable)

  4. the web_root is the current working directory (the default)

  5. the database is exposed publicly

CVSS Scores

version 3.1