Opened 3 years ago
Closed 2 years ago
#5069 closed defect (fixed)
Schema qualify pg_catalog functions and tables
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.10 |
Component: | build | Version: | 2.4.x |
Keywords: | Cc: |
Description
To better protect against https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path
during PostGIS install and upgrade.
The focus is on CREATE EXTENSION / select postgis_extensions_upgrade() / ALTER EXTENSION
I think the tables to change are not necessary, although in theory we should be since someone could define such tables in the schema they install postgis (like a view that calls a function). I will be replacing these as well to prevent a rogue actor forcing some change by replacing key tables/views in pg_catalog.
Sadly I think this changes quite a few files.
pull requests ready to go for
2.4 - https://git.osgeo.org/gitea/postgis/postgis/pulls/82 2.5 - https://git.osgeo.org/gitea/postgis/postgis/pulls/80 3.0 - https://git.osgeo.org/gitea/postgis/postgis/pulls/79 3.1 - https://git.osgeo.org/gitea/postgis/postgis/pulls/77 (this is showing error at moment, will fix in a bit)