Bug 2142774 (CVE-2022-45151, MSA-22-0031)

Summary: CVE-2022-45151 moodle: stored XSS possible in some "social" user profile fields
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: moodle 4.0.5, moodle 3.11.11 Doc Type: If docs needed, set a value
Doc Text:
The stored-XSS vulnerability was discovered in Moodle which exists due to insufficient sanitization of user-supplied data in several "social" user profile fields. An attacker could inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 19:32:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2144704, 2144705, 2144706, 2144707    
Bug Blocks: 2141946, 2144719    

Description TEJ RATHI 2022-11-15 08:58:34 UTC
MSA-22-0031: Stored XSS possible in some "social" user profile fields

The "social" user profile field type performed insufficient escaping on some fields, resulting in a stored XSS risk.

Versions affected: 4.0 to 4.0.4 and 3.11 to 3.11.10
Versions fixed:    4.0.5 and 3.11.11

Comment 3 TEJ RATHI 2022-11-22 04:00:14 UTC
Created moodle tracking bugs for this issue:

Affects: epel-7 [bug 2144704]
Affects: fedora-35 [bug 2144705]
Affects: fedora-36 [bug 2144706]
Affects: fedora-37 [bug 2144707]

Comment 4 Product Security DevOps Team 2022-12-07 19:32:33 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.