Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7890

Validate file copy operations in plugman

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • cordova-lib
    • None

    Description

      Currently plugman fileCopy:

      1) allows absolute src and target elements to locations outside the plugin directory and/or project directory
      2) follows and allow copying of symlinks to files outside the plugin directory

      To fix i would suggest:

      1) throw on any resolved target location outside of the project dir
      2) throw on any resolved src not inside the plugin dir
      3) allow symlinks inside the plugins dir (common platform agnostic assets etc.) but it MUST point to a location also inside the plugin directory.

      Attachments

        Activity

          People

            goya David Brett Rudd
            goya David Brett Rudd
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: