Known risks
Energine 2.13 is released as it is: the 2.12 code brought to PHP 8.4+ and MariaDB 10.11, without new features. Before putting a site online, know these risks.
- Password restore sets a new password at once and e-mails it, without a confirmation link: anyone who knows a user's e-mail address can replace that user's password. Registration e-mails the generated password too, and sign-in has no rate limit or lockout.
- No CSRF protection: forms and administration actions carry no tokens, and the session cookie has no SameSite attribute, so in browsers that do not default to SameSite=Lax a page on another site can submit them in the name of a signed-in user.
- Public forms have no bot protection: registration, feedback, form-builder forms and anonymous comments.
- Admin grids show field values as HTML. Text sent through public forms can run scripts in an administrator's browser, and the session cookie is not HttpOnly, so such a script can take over the session. Review submitted content and keep the number of administrators small.
- PHP error details reach the pages: the core switches
display_errorson at run time, so an uncaught error prints file paths and a stack trace even withdebugset to 0. Setphp_admin_flag[display_errors] = offin the site's PHP-FPM pool (Installation, step 10). - Administrator rights are powerful: the form builder changes the database schema, and the widget editor writes template files. Give administrator rights only to people you trust.
- Deletes in admin grids cascade: deleting a language or a site removes everything stored for it, for good.
- With
debugon, mailings are not sent: each newsletter, with its recipients' addresses, is appended tohtdocs/uploads/tmp/mailout.txt, which the web server serves. Run live sites withdebugset to 0. - The configuration lives in the document root:
htdocs/system.config.phpholds the database password and stays private only while the web server hands.phpfiles to PHP. - Outdated third-party code: jQuery 2.1.4 (with publicly known XSS vulnerabilities) and MooTools 1.5.2; the image resizer is TimThumb 2.8.13 (2014), which also fetches images from a list of external sites (Flickr, Imgur, Wikimedia and others) for any visitor. jQuery and slick load from CDNs (ajax.googleapis.com, jsDelivr).
Security work continues in Energine Simple.