Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS12NXdmLWpnMzctcjltNc4AA1_y
SQLpage vulnerable to public exposure of database credentials
Impact
If
- you are using a SQLPage version older than v0.11.1
- your SQLPage instance is exposed publicly
- the database connection string is specified in the
sqlpage/sqlpage.json
configuration file (not in an environment variable) - the web_root is the current working directory (the default)
- your database is exposed publicly
then an attacker could retrieve the database connection information from SQLPage and use it to connect to your database directly.
Patches
Upgrade to v0.11.1 as soon as possible.
Workarounds
If you cannot upgrade immediately:
- Using an environment variable instead of the configuration file to specify the database connection string prevents exposing it on vulnerable versions.
- Using a different web root (that is not a parent of the SQLPage configuration directory) fixes the issue.
- And in any case, you should generally avoid exposing your database publicly
References
https://github.com/lovasoa/SQLpage/issues/89
Permalink: https://github.com/advisories/GHSA-v5wf-jg37-r9m5JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12NXdmLWpnMzctcjltNc4AA1_y
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 1 year ago
Updated: about 1 year ago
CVSS Score: 10.0
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Identifiers: GHSA-v5wf-jg37-r9m5, CVE-2023-42454
References:
- https://github.com/lovasoa/SQLpage/security/advisories/GHSA-v5wf-jg37-r9m5
- https://nvd.nist.gov/vuln/detail/CVE-2023-42454
- https://github.com/lovasoa/SQLpage/issues/89
- https://github.com/lovasoa/SQLpage/releases/tag/v0.11.1
- https://github.com/advisories/GHSA-v5wf-jg37-r9m5
Blast Radius: 1.0
Affected Packages
cargo:sqlpage
Dependent packages: 0Dependent repositories: 0
Downloads: 26,601 total
Affected Version Ranges: < 0.11.1
Fixed in: 0.11.1
All affected versions: 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.4.4, 0.5.3, 0.6.6, 0.6.7, 0.6.10
All unaffected versions: 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.19.0, 0.19.1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.20.5, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.26.1, 0.26.2, 0.27.0, 0.28.0, 0.29.0, 0.30.0, 0.30.1