GitHub Advisoryadvisory · PyPI

GHSA-cr8c-972v-rmp3 pgAdmin 4 Path Traversal vulnerability

MEDIUM Published 2022-03-17 Modified 2023-06-30 Official page ↗
Aliases
CVE-2022-0959
Ecosystem
PyPI
Packages
pgadmin4
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22, CWE-434
Reviewed
2023-06-30

Affected packages

• PyPI pgadmin4: < 6.7 → fixed in 6.7

Description

When run in server mode, pgAdmin 4 allows users to store files on the server under individual storage directories. Files such as SQL scripts may be uploaded through the user interface. The URI to which upload requests are made fails to validate the upload path to prevent path traversal techniques being used to store files outside of the storage directory. A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to manually upload files to any location that the operating system user account under which pgAdmin is running has permission to write.

Related

Alias · CVE (1)

  • CVE-2022-0959 A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to… vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-434 Unrestricted Upload of File with Dangerous Type weakness

References