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

Potential SQLI or info disclosure?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: FRONTEND, BACKEND
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:
      None

      Description

      Moodle.org throws some php and sql references when course = 0. I've spent about 2 min looking into this, so I don't know if this is intentional or not. You may want to take a look though.

      https://moodle.org/user/view.php?course=0

       
      Debug info: SELECT * FROM {course} WHERE id = ?
      [array (
      0 => 0,
      )]
      Error code: invalidrecord
      ×Stack trace: * line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown

      • line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      • line 48 of /user/view.php: call to moodle_database->get_record()

        Attachments

          Activity

            People

            • Assignee:
              marina Marina Glancy
              Reporter:
              mikepeterso Mike Peterso
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: