Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Moodle 3.10.1 - Persistent/Stored Cross-Site Scripting (XSS)

Persistent/Stored Cross-Site Scripting (XSS) Vulnerabilities found in Moodle 3.10.1 version.

Description:-

Moodle 3.10.1 is vulnerable to Stored Cross-Site Scripting (XSS) due to the improper input sanitization on the "Additional HTML Section" of the /admin/settings.php page. This vulnerability could allow an attacker to inject malicious JavaScript code into the "Header" & "Footer" fields and perform Stored Cross-Site Scripting (XSS) attack into the application.

Steps To Reproduce:-

  1. Navigate to the http://127.0.0.1/ and login with Admin credentials.
  2. Now, navigate to the Site Administration>Appearance>Additional HTML section.
  3. Insert the following JavaScript Payload <script>alert(document.cookie)</script> into the Header and Footer fields and save the settings.
  4. Observe the Payload getting executed on all pages of the application.

Reference: CVE-2021-27131