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
    • Rank:
      30801

      Description

      incorrect use of preg_replace:

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

        Activity

        Hide
        Petr Škoda added a comment -

        fixed in cvs

        Show
        Petr Škoda added a comment - fixed in cvs
        Hide
        Petr Škoda added a comment -

        downgrading - no dangerous characters should be able to get through

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: