Quick answers
- Is CVE-2013-4940 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2013-4940 being exploited in the wild.
- How severe is CVE-2013-4940?
- Medium severity, with a CVSS score of 4, published 13 May 2022.
- Which products and versions are affected?
- Moodle through 2.1.10; 2.2.0 through 2.2.10; 2.3.0 through 2.3.7; 2.4.0-rc1 through 2.4.4; 2.5.0-beta through 2.5.0.
- Is there a fix for CVE-2013-4940?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2013-4940 attacked?
- It is attacked over the network.
- Am I affected by CVE-2013-4940?
- Check whether you run Moodle at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
This is a cross-site scripting (XSS) vulnerability (CWE-79) in the io.swf Flash component of Yahoo YUI's IO Utility. The vulnerability exists in how the component processes URL parameters, failing to properly sanitize user-supplied input. An attacker can craft a malicious URL containing arbitrary JavaScript that gets reflected in the page without proper encoding. The attack requires user interaction (clicking a malicious link) but no authentication. When an unpatched YUI version is deployed in applications like Moodle, the XSS payload executes in the victim's browser with the privileges of the hosting page. Patches are available: YUI 3.10.11 or later, or Moodle 2.2.11+, 2.3.8+, 2.4.5+, 2.5.1+.
Affected products
- Yahoo YUI 3.0.0 through 3.10.10, 3.10.12
- Moodle Moodle through 2.1.10; 2.2.0 through 2.2.10; 2.3.0 through 2.3.7; 2.4.0-rc1 through 2.4.4; 2.5.0-beta through 2.5.0
Identifiers
- CVE-2013-4940
- GHSA-x5hj-47vv-53p8
Timeline
- 2013-07-29: disclosed
- 2022-05-13: advisory: GitHub security advisory published