Bug 2142773 (CVE-2022-45150, MSA-22-0030)

Summary: CVE-2022-45150 moodle: reflected XSS risk in policy tool
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, moodle 3.9.18 Doc Type: If docs needed, set a value
Doc Text:
A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 19:02:51 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, 2144718    

Description TEJ RATHI 2022-11-15 08:58:30 UTC
MSA-22-0030: Reflected XSS risk in policy tool

The return URL in the policy tool required extra sanitizing to prevent a reflected XSS risk.

Versions affected: 4.0 to 4.0.4, 3.11 to 3.11.10, 3.9 to 3.9.17 and earlier unsupported versions
Versions fixed:    4.0.5, 3.11.11 and 3.9.18

Comment 3 TEJ RATHI 2022-11-22 04:00:24 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:02:49 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.