漏洞描述
Pgweb has no authentication unless both --auth-user and --auth-pass are set. When it is started with a database connection string (--url or PGWEB_DATABASE_URL, as in the official Docker example), the server opens the PostgreSQL connection at startup and every API request runs on that connection. An unauthenticated GET /api/connection returns the connected database, the PostgreSQL role, the server version and internal addresses, and the same access lets anyone browse every table and run arbitrary SQL through /api/query with the privileges of the configured role.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。