TattooMate 3.0.1.3: Stronger security, cleaner permissions, a more reliable tooth form
Version 3.0.1.3 of TattooMate isn't built around a new feature. Instead, we did a thorough review of the existing code. Along the way we found weaknesses and fixed them right away.
Security
Several internal interfaces, including those for user management and the newsletter, did not fully check login and permissions in every case. That's fixed: every one of these interfaces now verifies who is making the request and whether that person has the required permission.
TattooMate also no longer sends sensitive account data such as password hashes and 2FA keys to the browser. They stay where they belong: on the server.
Permission management
We've unified permissions. Only what is set in staff management counts now. Older, duplicated permission data no longer has any effect.
On top of that, there are clear rules against expanding your own rights:
- Only a root account can grant root rights.
- Only root can edit root accounts.
- Anyone managing staff can only grant permissions their own account has.
- New accounts start with the minimum: they can view forms. Everything else has to be enabled deliberately.
Tooth form
For minors, the tooth form could not be submitted, and the error message about missing ID images wasn't shown. That works again. Uploaded IDs (client and legal guardian, front and back each) are now reliably saved with the form.
The browser also jumps straight to the field with an error, and a saved form can no longer be changed afterwards.
Under the hood
We ran the entire codebase through ESLint, a tool that automatically finds sources of errors and messy code. We started with 184 warnings and are now at zero. Most of the work was removing code that was no longer used. We also stabilized loading of attachments, tattoo images and support tickets, and removed an unnecessary database query from the newsletter reports.
None of this is visible at first glance, but it's exactly what keeps TattooMate stable and maintainable in the long run.
What do you need to do?
Nothing. We're rolling out the update to all instances.