Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.7, 1.8, 1.9
    • Fix Version/s: 1.6.6, 1.7.4, 1.8.4, 1.9
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      incorrect use of preg_replace:

      case PARAM_HOST: // allow FQDN or IPv4 dotted quad
      preg_replace('/[^\.\d\w-]/','', $param ); // only allowed chars
      ....

        Gliffy Diagrams

          Activity

          Hide
          Petr Skoda added a comment -

          fixed in cvs

          Show
          Petr Skoda added a comment - fixed in cvs
          Hide
          Petr Skoda added a comment -

          downgrading - no dangerous characters should be able to get through

          Show
          Petr Skoda added a comment - downgrading - no dangerous characters should be able to get through

            People

            • Assignee:
              Petr Skoda
              Reporter:
              Petr Skoda
              Tester:
              Nobody
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: