What is PostgreSQL?
PostgreSQL is a powerful open-source relational database. It supports advanced SQL, ACID transactions, and extensibility.
Common security issues
Weak credentials.
Trust authentication misconfiguration.
SQL injection via connected applications.
Excessive privileges on roles.
Exposed remote access.
Default ports
5432
Enumeration
Enumerate PostgreSQL version, DBs, schemas, roles, and extensions
Vulnerability Discovery
Guides for finding PostgreSQL auth flaws, weak creds, and misconfigs
PostgreSQL Remote Access Misconfiguration
PostgreSQL Superuser and Dangerous Privilege Detection
PostgreSQL Trust Authentication Detection
PostgreSQL Weak and Default Credential Check
Exploitation
RCE via COPY TO PROGRAM, UDF, file read, and privesc methods
PostgreSQL RCE and Exploitation
Exploit PostgreSQL for RCE via COPY TO/FROM PROGRAM, UDF injection, and privilege escalation techniques targeting misconfigured or authenticated database instances.