baserCMS: Unauthenticated Stored XSS via Shortcode Expansion in Blog Comments
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
baserCMS is a website development framework. In versions 5.0.0 before 5.3.2 and 5.4.0 before 5.4.2, global shortcode expansion runs over the complete rendered page, including HTML-escaped blog comments supplied by unauthenticated visitors. A comment containing the BcBaser.getGoogleMaps shortcode can set apiBaseUrl to an attacker-controlled script URL, which is emitted as a script src and executes JavaScript on the site's origin when another visitor or administrator opens the article displaying that comment. Escaping raw HTML in comments does not prevent this stored cross-site scripting because shortcode processing happens after HTML rendering. Other registered shortcodes also expand in comments; Mail.getForm can embed a working contact form with a valid CSRF token. The flaw can compromise the authenticated browser context of an administrator who views the affected article. This issue has been patched in versions 5.3.2 and 5.4.2.
Text from CVE List
Affected versions 2
- basercmsaffected: >= 5.0.0, < 5.3.2CVE List
- basercmsaffected: >= 5.4.0, < 5.4.2CVE List
References 4
- github.com/baserproject/basercms/commit/bec4776ab497457fac76da7ae67d2dd0ad964eecFixvia 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-qhv2-3j2q-v43xAdvisoryvia CVE List