-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL injection vulnerability #3
Comments
filter_var is better than doing nothing, although it might have been nice to use the moodle clean_param function which is more restrictive. |
you shouldn't need to add the sanitisation here: because you are using mform which should already sanitise the vars with setype on the form definition and they will already be safe to use. it is also using standard db functions for insert which will also prevent any injection etc. |
just in case that wasn't clear... set_type in the form definition here: |
Unnecessary filter removed. |
The function grab_tagged_items in block_equella_links.php is vulnerable to SQL injections. xmlpath is a text field which isn't sanitised sufficiently to prevent injection and idnumber can also be injected into. Use of a prepared statement would alleviate this.
The text was updated successfully, but these errors were encountered: