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

SCO prerequisites bypass by URL tampering

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.5.4
    • Fix Version/s: None
    • Component/s: SCORM
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Say I have a multiSCO SCORM package where access to SCO "B" is restricted by the prerequisite that SCO "A" must be completed, as per this manifest part:

      <item identifier="A" isvisible="true" identifierref="A_ref">
      <title>SCO A</title>
      </item>
      <item identifier="B" isvisible="true" identifierref="B_ref">
      <title>SCO B</title>
      <adlcp:prerequisites type="aicc_script">A</adlcp:prerequisites>
      </item>

      The page https://my.moodle.site/mod/scorm/view.php?id=1 correctly make the link to SCO B inactive until SCO A is completed.

      But if I copy the launch URL of SCO A:
      https://my.moodle.site/mod/scorm/player.php?scoid=1&cm=1&currentorg=my_scorm_package&display=popup&mode=normal
      and paste it in a new browser window, changing the querystring parameter scoid to that of SCO B (eg ?scoid=2), I get access to SCO B even if I am not entitled to.

      Moreover, if I insert the scoid of an existing SCO of another course, the tracking in the db table scorm_scoes_track will have the fields scoid and scormid with inconsistent values (not matching the pairing of the fields id and scorm in the table scorm_scoes).

      Apparently the prerequisites are checked only in view.php and not in player.php.
      Also a consistency check of the values passed in the querystring should be enforced.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vdellaiuto Vittorio Dell'Aiuto
            Participants:
            Component watchers:
            Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: