Mathesar's web UI stores PostgreSQL role passwords behind one access boundary
Mathesar gives users a spreadsheet-like interface over PostgreSQL databases. The official access-control documentation states that Mathesar can store the passwords for PostgreSQL roles it uses to connect. It also notes that Mathesar metadata and data explorations are readable and writable by all collaborators on a database, regardless of the PostgreSQL role. Those statements make the web application a security boundary around both application metadata and database credentials.
An asset inventory should record the Mathesar hostname, the PostgreSQL clusters it can reach, the stored roles, and the collaborators with access. A title query can find a candidate, but it does not show which databases are connected or whether a stored role has write, superuser, or administrative privileges.
Discover the web layer
Start with title="Mathesar" and record the final destination and login page. Compare it with a product fingerprint only if one has been confirmed. A customized reverse proxy or single sign-on flow may remove the title.
No fresh or stored count was collected for this run. The absence of a query result must not be written as evidence that no Mathesar deployment exists. The organization should look for known internal hosts, then use ZoomEye only as an authorized discovery aid.
When a candidate is identified, verify the host through DNS ownership and certificate metadata. Do not test credentials or query the database through the web interface without approval.
Review stored roles
List the PostgreSQL roles stored in Mathesar and the database or schema access they grant. Prefer least-privilege roles over superusers. Use separate roles for read-only reporting, controlled data editing, and schema administration. A single powerful role behind many collaborators collapses the database permission model.
Confirm where role passwords are stored and how backups protect them. An application backup can contain both the database data and the encrypted or plaintext credentials used to reach it. Keep the backup in a separate trust domain and rotate passwords after restoration.
Review collaborators and SSO
Inventory local users, SSO mappings, and administrators. The documentation says admins can save, update, and remove stored passwords and grant access through PostgreSQL roles. Administrators therefore need stronger authentication and a smaller population than ordinary collaborators.
Check whether signup is open, whether an external identity provider is required, and whether stale local passwords remain valid after SSO is enabled. Review API and automation access if the deployment supports it.
The access-control documentation also warns that shared metadata and explorations are writable by all collaborators. Separate teams by database or schema when that shared editing model does not match the organization's policy.
Response and limits
If the web UI was exposed, rotate stored PostgreSQL role passwords and review database audit logs for queries outside the expected workflow. Check Mathesar users, role mappings, and connected database records. Preserve application logs and database snapshots before remediation.
The query identifies possible web deployments only. It does not prove that a PostgreSQL connection exists, that stored passwords are current, or that a user has administrative access.
Top comments (0)