Issue Details (XML | Word | Printable)

Key: MDL-15716
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Petr Skoda
Reporter: Iñaki Arenaza
Votes: 2
Watchers: 5
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Tighten dataroot security checks and warn the administrator 'loudly'

Created: 20/Jul/08 04:57 AM   Updated: 21/Oct/08 09:01 PM
Return to search
Component/s: Administration, Installation, Security Alert
Affects Version/s: 1.6.7, 1.7.5, 1.8.6, 1.9.2
Fix Version/s: 1.9.3

File Attachments: 1. Text File public_dataroot_stable19_8.patch (15 kB)
2. Text File tighten-dataroot-security-checks-16-v3.diff (10 kB)
3. Text File tighten-dataroot-security-checks-17-v3.diff (10 kB)
4. Text File tighten-dataroot-security-checks-18-v3.diff (10 kB)
5. Text File tighten-dataroot-security-checks-19-v3.diff (10 kB)
6. Text File tighten-dataroot-security-checks-head-v3.diff (10 kB)

Image Attachments:

1. admin_block.png
(19 kB)

2. admin_index.png
(64 kB)

3. install.png
(24 kB)

Participants: Dan Poltawski, Howard Miller, Iñaki Arenaza, Martin Dougiamas, Petr Skoda and Tim Hunt
Security Level: None
QA Assignee: Nicolas Connault
Resolved date: 21/Aug/08
Affected Branches: MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
The attached patch adds additional checks for the moodledata directory during early installation phases (much earlier than the current check inside admin/index.php), uses stronger warning messages, lets the user click on a link to actually check whether the moodle data directory is accessible from the web or not (which is far easier than trying to check it from the server itself, as it is quite complicated and depend on a lot of configuration factors) and refuses to continue the installation if the moodledata directory appears to be accesible, unless the user explicitly confirms that s/he has verified the directory is not accesible. See the attached image (called install.png) to view all the details mentionned above.

In addition to it, the current check inside admin/index.php is extended to visually notify the admin about the potential problem with moodledata, as it may happen that moodle has been installed with some automated installer that completely hides the installation process, including the warnings and the confirmation checkbox (fantastico is an example of this). So the patchs adds a visual notification about the potential problem to the administration block notifications area (see attached image called admin_block.png). When you click on it, it displays a stronger warning than the current one, lets the administration click on a link to check the moodledata directory accessibility from the web and offers a button to remove the warning (both from the administration block, and the admin notifications page).

Given that there are thousands of Moodle install all over the world with their moodledata directory open to anyone, and that having access to moodledata basically means you can do whatever you want with that moodle install (you can steal the admin user session, for example), I think it's really important to add this check & visual notification to help those people configure their sites correctly.

I'm attaching patches for 1.5, 1.6, 1.7. 1.8, 1.9 and HEAD current as of today.

Saludos. Iñaki.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Iñaki Arenaza made changes - 20/Jul/08 04:58 AM
Field Original Value New Value
Attachment tighten-dataroot-security-checks-17-v3.diff [ 14587 ]
Attachment tighten-dataroot-security-checks-16-v3.diff [ 14588 ]
Iñaki Arenaza made changes - 20/Jul/08 04:59 AM
Attachment admin_index.png [ 14591 ]
Attachment install.png [ 14589 ]
Attachment admin_block.png [ 14590 ]
Iñaki Arenaza made changes - 12/Aug/08 05:49 PM
Component/s Administration [ 10050 ]
Security Serious security issue [ 10000 ]
Component/s Installation [ 10069 ]
Petr Skoda made changes - 13/Aug/08 12:35 AM
Assignee Petr Skoda [ skodak ] Martin Dougiamas [ dougiamas ]
Petr Skoda made changes - 19/Aug/08 07:54 PM
Attachment public_dataroot_head_3.patch [ 14893 ]
Petr Skoda made changes - 19/Aug/08 08:40 PM
Attachment public_dataroot_head_5.patch [ 14894 ]
Petr Skoda made changes - 19/Aug/08 08:40 PM
Attachment public_dataroot_head_3.patch [ 14893 ]
Petr Skoda made changes - 20/Aug/08 04:14 AM
Attachment public_dataroot_19stable_6.patch [ 14900 ]
Petr Skoda made changes - 20/Aug/08 04:14 AM
Attachment public_dataroot_head_6.patch [ 14901 ]
Petr Skoda made changes - 20/Aug/08 04:14 AM
Attachment public_dataroot_head_5.patch [ 14894 ]
Dan Poltawski made changes - 20/Aug/08 06:26 PM
Security Serious security issue [ 10000 ]
Petr Skoda made changes - 21/Aug/08 01:33 AM
Attachment public_dataroot_19stable_6.patch [ 14900 ]
Petr Skoda made changes - 21/Aug/08 01:34 AM
Attachment public_dataroot_19stable_7.patch [ 14912 ]
Petr Skoda made changes - 21/Aug/08 04:09 PM
Attachment warning.jpeg [ 14918 ]
Iñaki Arenaza made changes - 21/Aug/08 06:37 PM
Security Serious security issue [ 10000 ]
Petr Skoda made changes - 21/Aug/08 06:43 PM
Attachment warning.jpeg [ 14918 ]
Petr Skoda made changes - 21/Aug/08 06:43 PM
Assignee Martin Dougiamas [ dougiamas ] Petr Skoda [ skodak ]
Petr Skoda made changes - 21/Aug/08 11:31 PM
Attachment public_dataroot_19stable_7.patch [ 14912 ]
Petr Skoda made changes - 21/Aug/08 11:31 PM
Attachment public_dataroot_head_6.patch [ 14901 ]
Petr Skoda made changes - 21/Aug/08 11:34 PM
Attachment public_dataroot_stable19_8.patch [ 14934 ]
Petr Skoda made changes - 21/Aug/08 11:40 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.9.3 [ 10290 ]
Petr Skoda made changes - 21/Aug/08 11:41 PM
Affects Version/s 2.0 [ 10122 ]
Issue Type Bug [ 1 ] Improvement [ 4 ]
Nicolas Connault made changes - 21/Oct/08 09:01 PM
Status Resolved [ 5 ] Closed [ 6 ]
QA Assignee nicolasconnault