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


Severity

Recommended
0.0
high
0
10

    Threat Intelligence

    EPSS
    0.07% (30th 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 ID SNYK-RUST-SQLPAGE-5905945
  • published 26 Apr 2024
  • disclosed 18 Sep 2023
  • credit Unknown

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
Expand this section

Snyk

8.7 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

9.1 critical