Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Bypassing preventexecpath Moodle

I'm working on a CTF's Moodle site. A bug for Moodle 3.10 was recently published (CVE-2021-21809) aka as (Moodle spellchecker plugin command execution vulnerability) which is remote code injection.

For exploiting the bug, we need to change an executable path. However, in almost all Moodle sites, we cannot edit executable paths from Admin GUI, because the site admin set option
Code
$CFG->preventexecpath = true;
in the config.php

I'm working on bypassing this prevention in order to exploit the bug. But I don't know how or where to start.

Do you have any idea for this?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by FpeopleMar 6, 2026 07:41 AM 1 95 Mar 6, 2026 07:41 AM
Last Post: cdev
[H4CK3R$] by skullDec 12, 2025 01:01 PM 2 455 Dec 12, 2025 01:01 PM
Last Post: Tyr
by hahaha.lolNov 27, 2020 03:43 AM 20 5,338 Nov 27, 2020 03:43 AM
Last Post: MR DI