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

Logical inconsistency between ignoresecurity and curl with a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11
    • Files API
    • MOODLE_311_STABLE

      If you use a proxy, then all traffic out via the proxy should be internet facing and the proxy should not, by design, have any access to internal network services.

      So if you use curl for an internal service which is not on the internet then it must not use the proxy. There are a couple places which mostly work because they pass in 'ignoresecurity', but I think all of these places should also pass proxy => false

       

      admin/tool/opcache/cli/check_opcache.php:78:$curl = new curl(array('ignoresecurity' => true)); // The ignoresecurity option means that $CFG->curlsecurityblocked
      admin/tool/opcache/cli/check_opcache.php-79- // ignored by purpose. Otherwise, $CFG->curlsecurityblockedhosts might prevent
      admin/tool/opcache/cli/check_opcache.php-80- // that the web part of this CLI tool is fetched.

       

      lib/mlbackend/python/classes/processor.php:164: $curl = new \curl(['ignoresecurity' => true]);

       

      lib/mlbackend/python/classes/processor.php:635: $curl = new \curl(['ignoresecurity' => true]);

       

      search/engine/solr/classes/engine.php:1400: $this->curl = new \curl(['ignoresecurity' => true]);

       

            Unassigned Unassigned
            brendanheywood Brendan Heywood
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.