Repository navigation
[Security] GDPR security issue fixes - #3063
Merged
Merged
Conversation
Anindra123
marked this pull request as ready for review
October 6, 2026 09:17
shewa12
requested changes
Oct 7, 2026
shewa12
reviewed
Oct 7, 2026
shewa12
reviewed
Oct 7, 2026
shewa12
reviewed
Oct 12, 2026
| $user_login = $user->user_login ?? ''; | ||
| $avatar_src = get_avatar_url( $user_id, array( 'size' => 40 ) ); | ||
|
|
||
| $value = '<button type="button" class="tutor-btn tutor-btn-outline-primary tutor-btn-sm" data-tutor-modal-target="tutor-consent-logs-modal" data-consent-logs-trigger data-user-id="' |
Collaborator
There was a problem hiding this comment.
Instead of creating multiple attributes, create a single attribute and pass the JSON String, then read from the JSON data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Critical : XSS Vulnerability on consent modal
<img src=x onerror='....'>this user name is placed directly on the legal consent field thus executing javascript on viewtutor_json_encodethen decoded on the javascript file, this ensure the content is rendered as string instead of html elementCSV Formula Injection Vulnerability
=HYPERLINK('...')which is saved in the database and rendered on the consent modal, so when admin downloads the csv from the modal it executes the formula and converts the cell.sanitize_csv_fieldwhich makes sure the formula doesn't get executed, this sanitization is done when viewing the consent and during savingMisc fixes
is_consent_given_by_userwhich is not being usedis_existstouser_existasis_existsvalidation method does not exist in ValidationHelperresponse_bad_requesttojson_response