-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2022.2441
          MSA-22-0013: SQL injection risk in badge award criteria
                                18 May 2022

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Moodle
Publisher:         Moodle
Operating System:  UNIX variants (UNIX, Linux, OSX)
                   Windows
Resolution:        Patch/Upgrade
CVE Names:         CVE-2022-30599  

Original Bulletin: 
   https://moodle.org/mod/forum/discuss.php?d=434581&parent=1748725

Comment: CVSS (Max):  None available when published

- --------------------------BEGIN INCLUDED TEXT--------------------

MSA-22-0013: SQL injection risk in badge award criteria

An SQL injection risk was identified in Badges code relating to configuring
criteria.

NOTE: in Moodle 4.0, 3.11.6, 3.10.10 and 3.9.13, access to this vulnerability
was available to site administrators only. In earlier versions, access to the
relevant capability was also limited to teachers and managers by default.

Severity/Risk:     Serious
Versions affected: 4.0, 3.11 to 3.11.6, 3.10 to 3.10.10, 3.9 to 3.9.13 and
                  earlier unsupported versions
Versions fixed:    4.0.1, 3.11.7, 3.10.11 and 3.9.14
Reported by:       Michael Dunstan
Workaround:        In versions earlier than Moodle 4.0, 3.11.6, 3.10.10 and
                  3.9.13, remove the
                  moodle/badges:configurecriteria capability
                  from users to prevent them accessing the
                  affected functionality until the patch is
                  applied (in newer versions this is not
                  necessary).
CVE identifier:    CVE-2022-30599
Changes (master):  http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74333
Tracker issue:     MDL-74333 SQL injection risk in badge award criteria

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: https://auscert.org.au/gpg-key/

iQIVAwUBYoRtcskNZI30y1K9AQhVPxAAniZ0MwK3FJncAH7mIvI5U5Gd0vOfhk4t
dN9P/WaZey92wIm3Ow0mlcEx4sPLmdfLwL7dcdWcM4diXzpY9KGRJAStFPX7JaLR
n4EQLaqwzqSawR/HXP5tBgK8LXwo5Atiojq2Uv791VwOPBVyNGGxDbSn8bspAJbX
8I842latNo4Lhw/RodKyQeE7J+Le1eemtUFgUX+IMrWMw0LBuBtu3g/o8DYLsO/S
1oQlQfp9p4RZNG1DAjaBl82i79aEY6tO6mtLuxwWXyk93O52wfM3ua+PSFJigTLy
ZDftum68v0tQvNKQFdM37V/LmRzMje6QeT2iMu0AHK320eSJdvuSpKz2zSamV8sg
LEK31eEFqu3eaP8Rt6Kavak8pzOcDqv/B0AxVKSEg/4IjDze0kdH5aR84bVMC79J
BpakOyBVy996RsS0IQ3qBWgCUbyomDSA/CRF+i22kxtEqAmg1nhIBpW8mnVLu7xj
eZlG3Xseq5HlTjOcMdVqzWfHFjIdrZSvB/MQEfk6SMjrhqpUwF/U3vLjNrxw+pK1
aTzG8N0hAF0lQc20JfIjdQPzUtapQAgjapxpIFuesQBicGkuNt9YheoQ6+zFnFmM
GANmRj/o1WWtPrrZfS6lrgF89MPTGjlvL+pAAlWJ1upw+gYM92iBpKcZuTRnzNgz
0DFYPgRaaCU=
=BcaB
-----END PGP SIGNATURE-----