The TeX filter in Moodle 1.6 before 1.6.9+, 1.7 before 1.7.7+, 1.8
before 1.8.9, and 1.9 before 1.9.5 allows user-assisted attackers to
read arbitrary files via an input command in a "$$" sequence, which
causes LaTeX to include the contents of the file.
Upstream bug and CVS commit:
Jon, I have not checked if we may be disabling TeX filter by default, but we do not ship mimetex, so we should be using system LaTex.
Upstream further reported that the above patch is not sufficient and following change should be used instead:
For 1.6.* - 1.8.*:
I'm having trouble applying this. It looks like this patch might be applied after the previous one. Should I apply both in order or drop the portions affecting the previous patch?
CVS commit referenced in comment #0 introduced blacklist in filter.php. Git commit in comment #2 reverts that previous commit and moves blacklist to lib.php instead. Same change is in upstream CVS too, but it's just bit more annoying to refer to single commit changing multiple files in CVS.
moodle-1.9.4-6.fc9 has been submitted as an update for Fedora 9.
moodle-1.9.4-6.fc10 has been submitted as an update for Fedora 10.
moodle-1.9.4-6.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
moodle-1.9.4-6.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
Built for EPEL, epel_signers-members emaild to request push ASAP.