SmartAuth 2.0.70: private documents, locked sign-up and forgotten password, accurate dashboard
This version is primarily a security release: install it without delay, especially if your applications display documents or if open sign-up is enabled.
Documents are no longer published via a public link
For each document listed by a SmartMaker application, SmartAuth used to create a public Dolibarr sharing link: a link that opens the file without login and never expires. Applications now receive a private reference, which does not open anything by itself: each download checks the rights of the logged-in user, and it is recorded in the API log.
Links created by previous versions remain public: remove the sharing for files that should not be, in the Attached Files tab of their card.
Sign-up and forgotten password
- The password is chosen on the page opened by the confirmation email link, no longer in the sign-up form: it is no longer possible to enter a third party’s address to take over their account upon confirmation.
- The reset link is only sent to the user’s address, no longer to their company’s or contact’s, often a shared mailbox.
- The "forgotten password" form rejects requests from another site, and the "you already have an account" email is sent at most once per waiting period and five times per day for the same address.
- Login, sign-up, and token request attempts are counted before being verified: a simultaneous burst reaches the limit.
- The SSO portal rejects an identifier from another entity, and deleting a self-service sign-up account disables its access to the portal.
Others’ devices, notifications, and tokens out of reach
- A user can no longer rename or take over another’s device, nor receive their push notifications; the notification log only shows a non-administrator their own.
- A malicious link can no longer revoke or delete a user’s tokens from the SmartAuth tab of their card, and the Cancel button on token and device cards no longer redirects to another site.
- OAuth customer administration actions check the page’s security token, and the dashboard escapes users’ email addresses.
An accurate dashboard
Failed connections count actual failures, not each token refresh, including under PostgreSQL. The weekly trend of active tokens and the success rate of refreshes, previously stuck at 0%, now display their true value. The dashboard and API log list are translated, and their device filter works on Dolibarr 19 to 21.
Offline synchronization and integrators
- The same modification sent twice at the same time no longer creates two cards, a deletion no longer erases a card modified in the meantime, and the application learns which fields were not saved.
- The
sharefield in document lists carries the private reference; it is used as before with?q=orfile/{hash}. - Choice lists that would read a secret column are rejected, a bank account can no longer be linked to a company outside the user’s scope, and numeric filters reject anything that is not a number.
Details are in the version 2.0.70 release notes.
Update
Replace the module folder: no reactivation is required.
Other languages: Deutsch, Español, Français, Italiano, Nederlands, Polski, Português