A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.
https://moodle.org/mod/forum/discuss.php?d=434581
https://bugzilla.redhat.com/show_bug.cgi?id=2083610
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74333