Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-5468

Race condition with quiz uniqueid getting the id from $CFG->attemptuniqueid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      There is a possible race condition on the function call question_new_attempt_uniqueid since its getting its value from $CFG->attemptuniqueid + 1. This does not gurantee uniqueness.

      Here are the relevant commits:

      http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commitdiff;h=d115d8c736ff44bfc959c2c7b5908e83fb00bc9f

      Look at question_new_attemp_uniqueid on lib/questionlib.php which was from mod/quiz/locallib.php

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: