InstantUpgrade Beta Released

InstantUpgradeBeta

A new beta version of the hugely popular WordPress plugin, Instant Upgrade has been released. The new release promises to be more convenient to use. However, a good amount of testing has yet to be performed on this new version. Therefor, the author of the plugin is asking that anyone experienced to please download and beta test the new version and then report back with the results. Numerous amounts of testing has to be done with this sort of plugin due to the large amount of different configurations that make up a users webhosting account.

If you would like to beta test this new version, click here. Otherwise, stick with using 0.2 as that is currently the most recent version available.

The InstantUpgrade plugin downloads the latest WordPress version from the WordPress server and unpacks it at your server. In the next step, it deletes all of your old WordPress files (except wp-content/ and wp-config.php, language packs are preserved, too) and puts the new files into your WordPress directory. At last, it runs the upgrade script contained it the new WordPress version.

This Post Has The Following Tags:






  • There Are 10 Responses So Far. Jump To The Comment Form And Join In


    1. Jeffro, thank you very much for spreading the word! :)


    2. I used to use InstantUpgrade before I switched to SVN. I haven’t tried InstantUpgrade, but the one thing I didn’t like about it, was that it’d remove all files, before uploading the new ones, leaving your site unusable for a minute or two (index.php was removed, of course). For those who don’t feel comfortable with SVN, or don’t have shell access to their site, I’d definitely recommend InstantUpgrade.


    3. @Alex No problem Alex. If the InstantUpgrade plugin ends up being fully integrated into the core of WordPress, will development for this plugin be discontinued?

      @Chris Thomson Hey Chris, you’ll have to write up a post about what it’s like running a WordPress blog on Subversion. Maybe include some pros and cons between running a normal version of WordPress versus Subversion. I’d be interested in something like that.


    4. Hey, Jeff. I think you mentioned this plugin in the previous podcast, which made me think a lot about how easy/difficult/secure the file updates from the “inside” of the server are.

      The only arguments against such plugins are the usual ones:

      1) users of the same web server (on shared hosting accounts) can gain access to files on other accounts of the same server due to the read/write file permissions.

      2) If this single plugin has a security hole, so does the rest of the website, because the plugin has full read/write access rights to other files on the server (of the account).

      Therefore, I would never use such plugins myself, although I understand the complexity of the update procedure and how some people may be put off by it.

      It would be much better to create a single resource (a wiki, maybe) where more savvy users can post ftp instructions for the webhosts they are using — to make a centralized resource available to everybody.


    5. @Kaspars I think you bring up some excellent points. But simplicity appears to outweigh security. I don’t know how BIG of a threat this plugin could be, but the mere fact that WordPress.org is actually trying to integrate the functionality into the core could be a representation of the lack of security threats involved?


    6. Jeffro:

      If the InstantUpgrade plugin ends up being fully integrated into the core of WordPress, will development for this plugin be discontinued?

      Well *if* core devs would decide to take this plugin into core, which would be a great honour, then development would be just beginning. ;) I don’t know how the chances are, but I have some great ideas for future releases, like multisite updates (if you have multiple blogs, you can upgrade them all from one installation), and some other cool stuff. But all the improvements have to wait until the FTP feature is well enough tested, because this is really important for the whole idea of automatic upgrades.

      Kaspars:

      1) users of the same web server (on shared hosting accounts) can gain access to files on other accounts of the same server due to the read/write file permissions.
      2) If this single plugin has a security hole, so does the rest of the website, because the plugin has full read/write access rights to other files on the server (of the account).

      As for 1), it would have to be a pretty bad server setup where other users have access to your FTP directory. Usually FTP dirs on shared hosting servers are chrooted. *If* they do have access, they have read permissions on most files anyway, just like on any Unix/Linux server you can read other users’ directories (dunno about Windows). Most files are world readable, but only writable by the user. The plugin can only do what the FTP or HTTP user can also do. Btw, you might have misunderstood the part where all WP files are made world-writable: This is only for some minutes before the first upgrade, and only relates to v0.2 — since the new one uses FTP, we can simply act as the FTP user, who has all permissions anyway.

      As for 2) I agree that an attacker who gains raw access to the database could obtain the FTP account data. Unfortunately, there are enough plugins that have security problems, so this isn’t even too unlikely. I’ll think about a way to encrypt the FTP data in the database.


    7. Alex, thank you for such a detailed response.

      I would like to emphasize that I absolutely love this idea of being able to automatically upgrade WordPress core, and I think that you have done an amazing job by creating this and making it available to everyone.

      My initial idea of how the plugin works was the following:

      1) user activates the plugin and makes all the directories writable using their own ftp client (chmod 777 for all files and dirs).

      2) InstantUpgrade takes control of all files and dirs (using the server’s user under which it operates) and makes them chmod 766 (or something).

      3) Each time a new version of WordPress is released, the plugin downloads the archive file using either of PHP built-in http request functions (file get, curl).

      4) Deletes the old WordPress core files and extracts the downloaded archive (leaving some files/dirs intact).

      If thats how it works, then:

      I agree that the point (1) mentioned in my previous comment (about the users on the same server) is indeed valid only if the server setup is really bad. Nowadays this is very uncommon. Such vulnerability would be dangerous to any server system.

      But point (2) I think is still valid, and is basically the single most important issue of such plugin functionality. Full system file access is my only concern.

      Keep up the great work, Alex! I honestly think that this can be made very secure, if done right and scrutinized very carefully. If I’ll have any suggestions after going through the code, I will definitely let you know.


    8. I just downloaded the new beta version and the way it works is much different then I described. Now the server connects to itself (through FTP) and does all the replacing through http://FTP.

      This is much more secure. It would be even equal to the manual updating if the FTP username/password was not stored in the database, but requested from the user every time the update is initiated. It shouldn’t be too much of a hassle for the user to provide this information, as it would happen only once in a few month.

      This is really great! I think I’ll actually try it out very soon :)

      Reply - http://FTP.\n\nThis is much more secure. It would be even equal to the manual updating if the FTP username\/password was not stored in the database, but requested from the user every time the update is initiated. It shouldn\’t be too much of a hassle for the user to provide this information, as it would happen only once in a few month.\n\nThis is really great! I think I\’ll actually try it out very soon :)’); return false;”>Quote

    9. Kaspars, I’m glad you like it. I thought about the security issue, and decided that there is no secure way of storing the FTP password in the DB. (There might be one, but I’m not a security expert, and all possibilities I thought of were insecure and/or inconsistent in the end.) I will release a beta2 that will store all data *except* the FTP password in the DB, and request this password on each upgrade. I think this is a good balance between security and convenience.


    10. Any of you guys tested this plugin in a wordpress hosted on Yahoo? does it upgrade to 2.5 without any problems? thanx


    The Water's Warm, Jump In The Conversation

    By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.

    Close
    E-mail It