Skip to content

QuizModel.php : Security Fixes - #3053

Open
Anindra123 wants to merge 1 commit into
security/modelsfrom
models/QuizModel
Open

Anindra123 wants to merge 1 commit into
security/modelsfrom
models/QuizModel

Conversation

@Anindra123

Copy link
Copy Markdown
Collaborator
  • Added ABSPATH check
  • In get_quiz_answers_by_attempt_id the attempt_id was not type casted to int, further more there was no prepare statement on the query
  • IN get_quiz_attempt_timing @unserialize was calling with error suppressed with no proper flag passed to prevent PHP object injection
  • In get_quiz_count_by_course the query was updated to use query helper instead

Potential Impact

  • Quiz Attempt listing and details page
  • Analytics -> Single Course

@Anindra123 Anindra123 self-assigned this Oct 1, 2026
@Anindra123 Anindra123 added the 4.1.1 . label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant