Open Bloke opened 4 years ago
install_plugin
: From 4.9.0, this text will need to be revamped to include the fact that URLs may be pasted here to load plugins from remote repositories as long as the host permits it. Also mention that all plugins will be passed through the verify step.
Will that be safe? Are we opening a Pandora's box here?
What do you mean by safe? You click Install and it shows you on the verify step what is going to be installed. What the code is, what Textpack strings, the help and any additional files bundled (if it's a zip). If you don't like it, you click Cancel.
If the file isn't of a format we expect, we bail out. If the file contains dodgy content and the admin clicks Install, caveat emptor.
Up to now, we have been downloading and installing plugins from trusted sources. I actually think of this as an excellent idea if the remote depository is https://plugins.textpattern.com/ where the plugins can be curated and tested by the community.
Remote depositories beyond the community's control can be anywhere and the transfer could be intercepted. I realise that this can happen anyway but it's just adding another safety concern.
True but even if the endpoint is plugins.textpattern.com/plugins/smd_query.zip
then it could still be 'intercepted' via man-in-the-middle or a rogue bit of JS loaded by hacking core files.
But it doesn't matter if it's intercepted and delivers the wrong content, because:
The additional thing we have as a safety net is that no plugins run on the Plugins panel. So you can't have a rogue plugin running that could intercept a click or tamper with a download. Only physical access to Txp's server filesystem AND regenerating a new token in the database will make untrusted code be installed.
The following pophelps will need revising or tweaking:
status
: Should probably mention in the 'not viewable outside of the admin area' that they are previewable to logged-in users.article_image
: Possibly add the fact that a comma-separated list of image IDs may be used and displayed using the<txp:images>
tag to make galleries.keywords
: When they are rebranded as tags, and expanded, this text will need to be changed.use_plugins
: and you want tomakecheck if one or more plugins are involvedcomments_on_default
: Comments can be enabled/disabledNote that allowing comments can be turned on or offat any timeuse_textile
: Phase this pref out. Create adefault_textfilter
pref instead, and rewrite the text to reflect its nature as a pluggable filter for any markup system.image_category
: Fix the text to remove the links to the deprecated tags and link to<txp:images />
instead.upload_plugin
: From 4.9.0, this text will need to be revamped to include the fact that .txt files can be dragged/browsed and that all plugins go through the verify step.install_plugin
: From 4.9.0, this text will need to be revamped to include the fact that URLs may be pasted here to load plugins from remote repositories as long as the host permits it. Also mention that all plugins will be passed through the verify step.