Skip to content

Database password exposed in logs

High
AndrewBastin published GHSA-qpx8-wq6q-r833 Jun 5, 2023

Package

hoppscotch-backend (Self Hosted Community) (Docker Image)

Affected versions

<= 2023.4.4

Patched versions

2023.4.5

Description

Summary

Database password is exposed in the logs when showing the database connection string:

  1. Run a postgres database
  2. Clone project
  3. Change env to point to this database
  4. run the code
pnpm install
cd /app/packages/hoppscotch-backend/ || exit
pnpm run start:prod

image

Details

If exposed sensitive information in the server logs is a security risk like is exposed here this need to be address.

PoC

  • Run the docker compose with database connect settings
  • Open docker compose logs

Impact

Every one that can read the server logs.

Severity

High
8.4
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2023-34097

Weaknesses

Credits