Description
NocoBase @nocobase/plugin-collection-sql through 2.2.28 contains an SQL injection vulnerability that allows privileged users to store unvalidated SQL by bypassing checkSQL() through the sqlCollection:setFields action. Attackers holding the collection-sql snippet can replace a benign collection query with dangerous statements executed on reload, reading pg_shadow password hashes or calling pg_read_file.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nocobase | nocobase | ≤ 2.2.28 | — |
References
- https://github.com/nocobase/nocobase/issues/10629 issue-tracking
- https://github.com/nocobase/nocobase/blob/v2.2.28/packages/plugins/@nocobase/plugin-collection-sql/src/server/resources/sql.ts#L14-L104 technical-description
- https://github.com/nocobase/nocobase product
- VulnCheck Advisory: NocoBase plugin-collection-sql through 2.2.28 SQL Injection via sqlCollection:setFields third-party-advisory