baserCMS: SQL injection in the admin panel and admin API
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
Description
baserCMS is a website development framework. In versions 5.0.0 before 5.3.2 and 5.4.0 before 5.4.2, list and detail actions in the Admin and Api/Admin prefixes pass request query parameters, including contain, conditions, fields, finder, and order, directly to the ORM as options. A user able to log into the admin panel can embed SQL fragments in those options to execute arbitrary SQL against the application's database, including reading password hashes from the users table. Public-page and public-API fixes released in 5.3.1 and 5.4.1 did not protect these administrative paths. Setting USE_CORE_ADMIN_API to false does not prevent access through an authenticated browser session. This issue has been patched in versions 5.3.2 and 5.4.2.
Text from CVE List
Affected versions 3
- basercmsaffected: >= 5.0.0, < 5.3.2CVE List
- basercmsaffected: >= 5.4.0, < 5.4.2CVE List
- baserCMS, other>= 5.0.0, <= 5.4.1GitHub
References 4
- github.com/baserproject/basercms/commit/344de2aa975eda6d85dc1fa4647ba094caf8dcb6Fixvia CVE List
- github.com/baserproject/basercms/releases/tag/5.3.2Fixvia CVE List
- github.com/baserproject/basercms/releases/tag/5.4.2Fixvia CVE List
- github.com/baserproject/basercms/security/advisories/GHSA-2w6g-wp3r-26m3Advisoryvia CVE List