Demotic 12.0 Ready For Download
WORKS WITH: PHP >= 8.1
TESTED ON: PHP 8.3.7/8.3.15
MIGHT NOT WORK ON: PHP 8.4.*
THIS RELEASE REQUIRES PHP 8.1 TO 8.3.*.
This release introduces a few security fixes of Demotic CMS.
Users Plugin Security Fixes
The biggest fix is the 'Users' plugin that comes enabled and installed on Demotic CMS. The new update of the Users plugin now allows site admin(s) to obfuscate the routes to the User Registration, User Login and 'Forgot/Reset Password' pages. Previously, the routes to these pages were hadrcoded making it easy for (malicious) users to access these pages and launch malicious activities like User Enumeration and Brute force attacks. Now, site admin(s) can define the unique routes to these pages by setting at the 'config.php' level. To so you, they will need to edit their config.php file with these values (update the values side with your own routes).
'link/to/passwordReset', // The URI to the user's password page (http://mywebsite.com/{passwordResetURI}). Change this to protect your users password reset form page.
'updatePasswordURI' => 'link/to/updatePassword', // The URI to the users update password page (http://mywebsite.com/{updatePasswordURI}). Change this to protect your users update password form page.
'userRegistrationURI' => 'link/to/registration', // The URI to the users registration page (http://mywebsite.com/{userRegistrationURI}). Change this to protect your users registration form page.
'userLoginURI' => 'link/to/userLogin', // The URI to the users login page (http://mywebsite.com/{userLoginURI}). Change this to protect your users login form page.
During installation, Demotic CMS will write to the config.php some default values for these routes so you MUST update to something unique to protect these pages.
Other minor fixes: updates to the main Composer packages that run the CMS.
Blog Plugin Bugfix
The other major fix is the 'Blog' plugin that comes preinstalled with Demotic CMS. The bugfix is aimed at preventing empty results set being returned when the 'BlogList' widget is added to a page.
HOW TO UPDATE
Before running the update instructions below backup your site's files and database.
- Download the latest release from our "Downloads" page then unzip the archive.
- Open the "update-12.0.sql" file in the "Updates" folder.
- Run the SQL statements as specified.
- Copy the "Demotic" framework and replace the one in your installation.
- Copy the "Blog" plugin and replace the one in the 'Plugins' folder.
- Copy the "Users" plugin and replace the one in the 'Plugins' folder.
- Edit your config.php file to add the new routes to the User Registration, User Login and 'Forgot/Reset Password' pages.
- Test to see if everything is working right.
That's it for now!
