Description
ChurchCRM is an open-source church management system. Prior to 7.1.0, a stored cross-site scripting vulnerability exists in PersonView.php due to incorrect use of sanitizeText() as an output sanitizer for HTML attribute context. The function only strips HTML tags, it does not escape quote characters allowing an attacker to break out of the href attribute and inject arbitrary JavaScript event handlers. Any authenticated user with the EditRecords role can store the payload in a person's Facebook field. The XSS fires against any user who views that person's profile page, including administrators, enabling session hijacking and full account takeover. This vulnerability is fixed in 7.1.0.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CWE-87: Improper Neutralization of Alternate XSS Syntax
CWE-116: Improper Encoding or Escaping of Output
Product status
References
github.com/...RM/CRM/security/advisories/GHSA-pqp6-54p2-m66f
github.com/...RM/CRM/security/advisories/GHSA-pqp6-54p2-m66f