{"id":"GHSA-wgvx-x5g3-9v29","summary":"baserCMS administrative API authorization bypass through session fallback","details":"### Summary\n\nAn authorization bypass occurs against the API endpoint `/baser/api/admin/` by abusing the session authentication fallback.\n\n### Details\n\nThe mail settings are used here as an example.\n\nAdmin side:\n\nhttps://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L100\nWith `auth =\u003e false`, it is not accessible with operator privileges.\n\nAPI side:\n\nhttps://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L286\nWith `auth =\u003e true`, it is accessible even with operator privileges.\n\n---\n\nFirst, the default group for operators has `auth_prefix = 'Admin'`, which does not include `Api/Admin`.\n\nhttps://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/Model/Table/UsersTable.php#L389\n\nBecause of this condition, when trying to access the `Api/Admin` API with a JWT, operators have `auth_prefix = 'Admin'`, so they cannot obtain a JWT and should not be able to access it.\n\nHowever, there is a problem in `getAuthenticationService`.\n\nhttps://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/BaserCorePlugin.php#L507\n\nHere, session authentication is enabled even for the `Api/Admin` prefix.\nBy accessing the API with a Referer header, session authentication becomes active, allowing access to the API without holding a JWT.\n\nAs a result, all APIs configured with `auth =\u003e true` in `permission.php` become accessible by operators.\n\n### PoC\n\n1. Log in with a site operator (operator) privileged account.\n2. Run the following code in DevTools:\n\n```javascript\nfetch('/baser/api/admin/baser-core/site_configs/view.json', {\n  headers: {\n    'Referer': location.origin + '/baser/admin/' \n  }\n})\n.then(r =\u003e r.json())\n.then(d =\u003e {\n  console.table(d.siteConfig);\n})\n```\n\n\u003cimg width=\"1886\" height=\"1027\" alt=\"Screenshot_20260404_075242\" src=\"https://github.com/user-attachments/assets/e91a1d27-ac36-42fb-88a8-bc699b28b04f\" /\u003e\n\n\u003cimg width=\"1277\" height=\"595\" alt=\"Screenshot_20260404_075133\" src=\"https://github.com/user-attachments/assets/9c54459a-dad0-4445-a35d-1373255c2b22\" /\u003e","aliases":["CVE-2026-63012"],"modified":"2026-11-20T00:30:06.968162933Z","published":"2026-11-20T00:18:35Z","database_specific":{"github_reviewed_at":"2026-11-20T00:18:35Z","nvd_published_at":"2026-11-19T21:18:03Z","cwe_ids":["CWE-290"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/baserproject/basercms/security/advisories/GHSA-wgvx-x5g3-9v29"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63012"},{"type":"WEB","url":"https://github.com/baserproject/basercms/commit/2d7f74d3d5d584b9478c210016b81a1b7c30e9fb"},{"type":"WEB","url":"https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca"},{"type":"PACKAGE","url":"https://github.com/baserproject/basercms"},{"type":"WEB","url":"https://github.com/baserproject/basercms/releases/tag/5.3.0"}],"affected":[{"package":{"name":"baserproject/baser-core","ecosystem":"Packagist","purl":"pkg:composer/baserproject/baser-core"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"versions":["5.0.0","5.0.0-beta2","5.0.0-beta3","5.0.0-beta4","5.0.1","5.0.10","5.0.11","5.0.14","5.0.15","5.0.16","5.0.17","5.0.18","5.0.19","5.0.2","5.0.20","5.0.21","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.1.0","5.1.1","5.1.10","5.1.2","5.1.3","5.1.4","5.1.5","5.1.6","5.1.7","5.1.8","5.1.9","5.2.0","5.2.1","5.2.10","5.2.2","5.2.3","5.2.4","5.2.5","5.2.5.1","5.2.6","5.2.7","5.2.8","5.2.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-wgvx-x5g3-9v29/GHSA-wgvx-x5g3-9v29.json","last_known_affected_version_range":"\u003c= 5.2.3"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}