baserCMS: Mail-form auto-replies accept multiple visitor-controlled recipients
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.
Description
baserCMS is a website development framework. In versions 5.2.5 before 5.3.2 and 5.4.0 before 5.4.2, an unauthenticated visitor can supply a comma-separated address list in a public mail form's email field and cause a single auto-reply to be addressed to multiple third parties. MailMessageMailer::sendFormToUser() passes the visitor-controlled userMail value to parseAndNormalizeMailAddresses(), which splits it with explode(',') and supplies every resulting address to setTo(). Newly created forms with an email-type field are affected when the separate, optional VALID_EMAIL server-side validation is not enabled; browser type=email validation does not prevent crafted requests. The bundled contact form enables VALID_EMAIL and is not affected. The auto-reply uses the site's sender identity and includes partially attacker-controlled content, allowing abuse of the site to deliver unsolicited mail. This issue has been patched in versions 5.3.2 and 5.4.2.
Text from CVE List
Affected versions 3
- basercmsaffected: >= 5.2.5, < 5.3.2CVE List
- basercmsaffected: >= 5.4.0, < 5.4.2CVE List
- baserCMS, other>= 5.2.5, <= 5.4.1GitHub
References 4
- github.com/baserproject/basercms/commit/99e6257c9d5e2fa2bff2351defcb9fb37f69daf1Fixvia 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-w47c-4g8m-gjv9Advisoryvia CVE List