Vulnerability record · Windows 10 (1507)
pgAdmin 4: File Manager and storage-path tools act on a different path from the one checked
Windows 10 (1507)
What it fixes
In server mode pgAdmin 4 validates a path into the user's storage directory with check_access_permission(), which builds the absolute path with get_abs_path(). Several callers then acted on a path they built differently, so the path checked and the path used could name different files:
The fix makes check_access_permission() return the path it checked and every caller act on that path, decodes folder paths once, and opens, deletes and renames files relative to directories opened from the storage directory without following symbolic links. Desktop mode is not affected.
This issue affects pgAdmin 4: before 9.19.
Manual fix · Windows 10 (1507)
Sources