Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: STABLE backlog
-
Component/s: Wiki (2.x)
-
Labels:
-
Affected Branches:MOODLE_20_STABLE
Description
Tim just created new security related pages in our docs http://docs.moodle.org/en/Development:Security ![]()
1/ learn how to use require_login() and require_course_login()
2/ learn how to use sesskey to prevent CSRF
3/ add missing capability tests
4/ learn how to use s() in forms - potential XSS in block_wiki_search - PARAM_ACTION prevents it, but this type is not correct there because it would work for english only
this is not a real security issue, but following can not work:
<code php>
$option = optional_param('editoption','', PARAM_ALPHA);
if ($option == get_string('cancel')) {
<code>