Jump to content

Recommended Posts

Posted

Hi all,

Duplicator 1.6.1 is out. Please update - 1.6.0 fixed two security issues, and 1.6.1 fixes some problems reported in this thread.

Security (1.6.0)

  • Installer: while installer.php sat on a server next to a package, anyone could run it and inject code into site/config.php. The installer now asks for a key, written to installer-key.php next to it. You read it with FTP or your file manager, it shows nothing over HTTP. At the end, a cleanup step removes the installer, the package and the dump. It was a known issue, fixed now.
  • Amazon S3: packages were uploaded with a public ACL. They are private now.

If you use S3, please also:

  • turn on "Block public access" on the bucket
  • make the packages already there private
  • change your AWS keys if a package may have been reachable (they hold the module settings)

And on any server where you restored a site: just make sure installer.php, the package and duplicator-temp/ are gone.

What's new in 1.6.0

  • package encryption with the sodium extension bundled in PHP, no library to install. The server only gets the public key. You create the keys on your own computer with dupcrypt.php (downloadable from Setup > Duplicator), and the installer asks for the secret key when you restore. Thanks @netcarver - this finishes the old encryption branch - I'm open to go further again with keys.
  • a new Setup > Duplicator page for packages, settings and the log. It follows the admin theme, dark mode included. The classic settings page still works.
  • a refreshed installer
  • fixes: installer download when the module folder is not named Duplicator, FTP retention without a deadline, large MySQL 8 restores - thanks Maxim
  • some hardening: cron.php is CLI only now, delete/sync need a token, and no third-party script in the admin

Fixes in 1.6.1

  • symlinked modules are packaged as real folders. Links PHP can’t read (open_basedir), broken links or links back into the site are left out, without warnings reported by @Peter Knight
  • .git, .cursor, .DS_Store and friends are never packaged now - a bug let every hidden file in
  • the installer extracts big packages in batches and goes on by itself. No more editing set_time_limit()
  • no more package without its database: Duplicator checks the dump is in it, and refuses to save it otherwise

The README has been rewritten too, with every setting, storage and the restore steps: https://github.com/flydev-fr/Duplicator

Thanks @adrian for the two PRs that started all this, and to both of you for the review. And thanks to everyone who reported problems here.

I tested backup, encryption and restore on ProcessWire 3.0.260 with PHP 8.5 and MariaDB. I haven’t tested Dropbox, Google Drive or S3 accounts yet, nor a host with open_basedir - so if you use one of them, let me know how it goes.

  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...