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

Autocomplete form element does not escape string when adding to the list of tags for the editing user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.2.3
    • Fix Version/s: None
    • Component/s: Forms Library, Tags
    • Labels:
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      On Interests - "List of interests", if you enter a tag, for exxample "<script>alert(1);</script>", the script will run for the current user.

      edited: text is cleaned by the backend and scripts are never displayed for other users or during editing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shirai Tatsuya Shirai
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: