Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-354

permitLocalInfile=false does not block LOAD DATA LOCAL INFILE against a malicious server

    XMLWordPrintable

Details

    Description

      When permitLocalInfile=false, the driver omits the CLIENT_LOCAL_FILES capability, so a compliant server rejects LOAD DATA LOCAL INFILE.

      However, the local-infile request handler never re-checks permitLocalInfile. A malicious or MitM server can ignore the missing capability and send a 0xfb local-infile request anyway; the driver processes it and, when the client's own SQL is a genuine LOAD ... LOCAL INFILE '<file>', streams that file to the server, despite permitLocalInfile=false.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.