Posted by hswong3i on January 31, 2013 at 3:14am
8 followers
| Project: | Plupload integration |
| Version: | 7.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Refer to #1895328: Security exploit in plupload external library examples folder, we should remove examples folder in plupload library in order to avoid security risk as stated in PSA-2011-02.
In order to include plupload module into Drupal distribution, e.g. DruStack, we need a patch file for drush make so can remove examples folder by patching the library.
Comments
#1
Patch file for plupload_1_5_5.zip.
#2
Thanks. Will link this issue from project's page.
#3
Pardon my presumption in setting this back to "needs work"—hopefully I'm the one in error—but I'm attempting to use this patch in a make file, and Drush reports that it's applying it, but the examples directory is still there afterward:
$ dr make my.make --no-core --no-patch-txt --libraries=plupload -yMake new site in the current directory? (y/n): y
Drush make restricted to the following entries: [ok]
Libraries: plupload
plupload downloaded from http://plupload.com/downloads/plupload_1_5_5.zip. [ok]
plupload patched with plupload-1_5_5-remove_examples-1903850-1.patch. [ok]
$ ls sites/all/libraries/plupload/examples/
bg.jpg custom.html dump.php jquery upload.php uploads
Even applying the patch manually (which works, so long as you use
patch -p1 ...) leaves behindexamples/bg.jpgandexamples/uploads.I'm I missing the obvious, or does the patch not actually work? Or is it a problem with Drush make? Or both?
#4
Refer to http://git.wikia.com/wiki/Patches, patch now created with:
git format-patch HEAD^ -M -C -s -D --keep-subject --stdout > ../plupload-1_5_6-remove_examples-1903850-4.patchTherefore able to show the rename/delete action and so works for both GIT checkout and -dev.tar.gz package.
#5
So poor that with -D it will not able to apply by patch not git apply:
Well... so recreate patch with:
git format-patch HEAD^ -M -C -s --keep-subject --stdout > ../plupload-1_5_6-rm_examples-1903850-5.patchTherefore sorry that please manually remove the example folder after patch applied ;-)
#6
Sorry for silly question, but how should line with that patch looks like in my.make file?
This doesn`t work
libraries[plupload][patch][] = http://drupal.org/files/plupload-1_5_6-rm_examples-1903850-5.patchHow else ?
#7
Hopefully my DruStack version can be your reference:
Some code snippet:
libraries[plupload][directory_name] = "plupload"libraries[plupload][download][type] = "file"
libraries[plupload][download][url] = "http://plupload.com/downloads/plupload_1_5_6.zip"
libraries[plupload][patch][] = "http://drupal.org/files/plupload-1_5_6-rm_examples-1903850-5.patch"
libraries[plupload][type] = "library"
#8
None of the above patches wok with an archive version of plupload from https://github.com/moxiecode/plupload/archive/1.5.6.zip.This works:projects[plupload_lib][type] = libraryprojects[plupload_lib][download][type] = get
projects[plupload_lib][download][url] = http://plupload.com/downloads/plupload_1_5_6.zip
projects[plupload_lib][directory_name] = plupload
projects[plupload_lib][patch][] = http://drupal.org/files/plupload-1_5_6-rm_examples-1903850-5.patch
#9
Patch for 1.5.7