A flaw was found in Moodle in versions 3.9.2 and 3.10.4. When creating a course, you can upload HTML files as a resource. When uploading an HTML file containing an <input> tag that has an XSS polyglot payload as "value" it is possible to perform a Cross-Site Scripting. Reference: https://moodle.org/mod/page/view.php?id=8722
Created moodle tracking bugs for this issue: Affects: epel-all [bug 1962294] Affects: fedora-all [bug 1962293]
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.
This CVE has been rejected. After checking with upstream, this appear to be intended and expected functionally. "In Moodle, permissions are controlled by "capabilities", which can have various "flags" assigned to them relating to known risks. The capability required to create new resources is only assigned to teachers/managers/admins by default, and is flagged as having a known XSS risk, meaning it is allowed to contain JavaScript content. A polyglot is not required, as standard JavaScript can be embedded within a HTML file resource directly. The reason we allow these actions by "trusted" users is to ensure we strike a balance between security and the ability for educators to create engaging and interactive content for their students."