{"id":"CVE-2026-63012","aliases":["CVE-2026-63012","GHSA-wgvx-x5g3-9v29"],"related":[],"kind":"vulnerability","state":"published","title":"baserCMS administrative API authorization bypass through session fallback","summary":"baserCMS is a website development framework. Prior to 5.3.0, getAuthenticationService permits an Api/Admin session authentication fallback based on the Referer header, although operator accounts have an Admin auth prefix and cannot obtain an Api/Admin JWT. An authenticated operator can therefore access /baser/api/admin/ endpoints whose permission.php entries have auth => true, including /baser/api/admin/baser-core/site_configs/view.json, even when the corresponding administrative functionality is restricted. This can disclose administrator-restricted configuration information. This issue is fixed in 5.3.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"baserCMS is a website development framework. Prior to 5.3.0, getAuthenticationService permits an Api/Admin session authentication fallback based on the Referer header, although operator accounts have an Admin auth prefix and cannot obtain an Api/Admin JWT. An authenticated operator can therefore access /baser/api/admin/ endpoints whose permission.php entries have auth => true, including /baser/api/admin/baser-core/site_configs/view.json, even when the corresponding administrative functionality is restricted. This can disclose administrator-restricted configuration information. This issue is fixed in 5.3.0.","source":"cvelist"},{"lang":"en","text":"### 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 => 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 => 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 => 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 => r.json())\n.then(d => {\n  console.table(d.siteConfig);\n})\n```\n\n<img width=\"1886\" height=\"1027\" alt=\"Screenshot_20260404_075242\" src=\"https://github.com/user-attachments/assets/e91a1d27-ac36-42fb-88a8-bc699b28b04f\" />\n\n<img width=\"1277\" height=\"595\" alt=\"Screenshot_20260404_075133\" src=\"https://github.com/user-attachments/assets/9c54459a-dad0-4445-a35d-1373255c2b22\" />","format":"markdown","source":"ghsa"}],"published":"2026-11-19T20:23:18.615Z","modified":"2026-11-20T18:18:55.487Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"version":"< 5.3.0","status":"affected"}],"vendor":"baserproject","product":"basercms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.3.0"}],"ecosystem":"Packagist","package":"baserproject/baser-core","purl":"pkg:composer/baserproject/baser-core","source":"ghsa"}],"references":[{"url":"https://github.com/baserproject/basercms/security/advisories/GHSA-wgvx-x5g3-9v29","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/baserproject/basercms/commit/2d7f74d3d5d584b9478c210016b81a1b7c30e9fb","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/baserproject/basercms/releases/tag/5.3.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63012","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/baserproject/basercms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-20T16:02:07.080Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63012","url":"https://www.cve.org/CVERecord?id=CVE-2026-63012","licence":"CVE Terms of Use","modified":"2026-11-20T17:53:32.764Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wgvx-x5g3-9v29","url":"https://github.com/advisories/GHSA-wgvx-x5g3-9v29","licence":"CC-BY-4.0","modified":"2026-11-20T00:30:06.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63012","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63012","licence":"Public domain","modified":"2026-11-20T18:18:55.487Z"}],"updatedAt":"2026-11-25T22:59:52.234Z","epss":{"score":0.00466,"percentile":0.42037,"date":"2026-12-02T12:00:21.000Z"}}