baserCMS
baserCMS: SQL injection in the admin panel and admin API
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.0.0, < 5.3.2
- >= 5.4.0, < 5.4.2
Fixed in 5.3.2, 5.4.2
Mitigation
Upgrade basercms to 5.3.2 or 5.4.2 or later.
References
- Vendor advisory github.com/baserproject/basercms/security/advi…
- Patch github.com/baserproject/basercms/commit/344de2…
- Release notes github.com/baserproject/basercms/releases/tag/…
1 more
- Release notes github.com/baserproject/basercms/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.