VYPR
Moderate severityNVD Advisory· Published May 27, 2014· Updated May 6, 2026

CVE-2014-0218

CVE-2014-0218

Description

Cross-site scripting (XSS) vulnerability in the URL downloader repository in repository/url/lib.php in Moodle through 2.3.11, 2.4.x before 2.4.10, 2.5.x before 2.5.6, and 2.6.x before 2.6.3 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
moodle/moodlePackagist
< 2.4.102.4.10
moodle/moodlePackagist
>= 2.5.0, < 2.5.62.5.6
moodle/moodlePackagist
>= 2.6.0, < 2.6.32.6.3

Patches

4
5c276a4c324b

MDL-45332 repository_url: URL parameter is using PARAM_URL

https://github.com/moodle/moodleFrederic MassartMay 8, 2014via ghsa
1 file changed · +1 1
  • repository/url/lib.php+1 1 modified
    @@ -46,7 +46,7 @@ class repository_url extends repository {
         public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){
             global $CFG;
             parent::__construct($repositoryid, $context, $options);
    -        $this->file_url = optional_param('file', '', PARAM_RAW);
    +        $this->file_url = optional_param('file', '', PARAM_URL);
         }
     
         public function check_login() {
    
729783c4ba97

MDL-45332 repository_url: URL parameter is using PARAM_URL

https://github.com/moodle/moodleFrederic MassartMay 8, 2014via ghsa
1 file changed · +1 1
  • repository/url/lib.php+1 1 modified
    @@ -46,7 +46,7 @@ class repository_url extends repository {
         public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){
             global $CFG;
             parent::__construct($repositoryid, $context, $options);
    -        $this->file_url = optional_param('file', '', PARAM_RAW);
    +        $this->file_url = optional_param('file', '', PARAM_URL);
         }
     
         public function check_login() {
    
b8a6f7d19d62

MDL-45332 repository_url: URL parameter is using PARAM_URL

https://github.com/moodle/moodleFrederic MassartMay 8, 2014via ghsa
1 file changed · +1 1
  • repository/url/lib.php+1 1 modified
    @@ -46,7 +46,7 @@ class repository_url extends repository {
         public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){
             global $CFG;
             parent::__construct($repositoryid, $context, $options);
    -        $this->file_url = optional_param('file', '', PARAM_RAW);
    +        $this->file_url = optional_param('file', '', PARAM_URL);
         }
     
         public function check_login() {
    
c5e8a036c509

MDL-45332 repository_url: URL parameter is using PARAM_URL

https://github.com/moodle/moodleFrederic MassartMay 8, 2014via ghsa
1 file changed · +1 1
  • repository/url/lib.php+1 1 modified
    @@ -46,7 +46,7 @@ class repository_url extends repository {
         public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){
             global $CFG;
             parent::__construct($repositoryid, $context, $options);
    -        $this->file_url = optional_param('file', '', PARAM_RAW);
    +        $this->file_url = optional_param('file', '', PARAM_URL);
         }
     
         public function check_login() {
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

10

News mentions

0

No linked articles in our index yet.