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 Unassigned
              Reporter:
              shirai Tatsuya Shirai
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: