Skip to content

CapCowork 1.2.6: full security audit and more reliable booking invoicing

Project : CapCowork Editor : CAP-REL Version : 1.2.6 Date : Dolibarr 18 to 23

Security stable announced 1 month ago declared compatibility
This announcement is a translation. Read the original version (Français)

A security release

This release includes the content of 1.2.4, which was not published.

The module has been reviewed end to end from a security standpoint. Every finding has been fixed and accompanied by its regression test, so that it does not come back. This is the core of this release, and the reason to update without waiting.

What this changes concretely on an installation:

  • the anti-CSRF token is required for check-in at reception, day pass generation, request conversion and administration repairs;
  • day pass QR codes and visitor badges are drawn from the cryptographic random generator;
  • day pass pages and menu are subject to their own permission;
  • rate limiting of anonymous forms is counted per IP address in the database: a bot that discards its cookies no longer bypasses it;
  • SQL failures are logged instead of being swallowed, list sorts are taken from a whitelist and output escaping is reinforced.

Bookings, orders and invoices

A booking is now confirmed only when the order is actually validated, and marked invoiced only when the invoice is actually paid. Both paths check the permission they require, and an already invoiced order does mark its bookings.

The link between a booking and its order is now actually saved: it survives saving the record.

Booking conflict detection fails closed on SQL error, instead of letting the booking through, and respects the preparation time declared on the space.

Portal, multi-company and publication

  • no more redirect loop behind a proxy that terminates TLS;
  • portal addresses are derived from the configured root;
  • the language cookie is issued as "secure";
  • the entity is set by the DOLENTITY header only when the server configuration allows it, and created objects are placed in the entity that creates them;
  • a single space publication rule, shared by the catalogue, the booking form, events and images. Spaces under maintenance are refused everywhere, and a private location no longer leaks through its events.

Fixes visible day to day

Announcements become editable again after creation, the checkboxes for deleting the photo and the cover image work again, and sorting of co-worker types is fixed. Dates survive saving a record, credit wallet consumption is atomic and signed, and scheduled tasks no longer use MySQL-specific SQL.

The demonstration dataset draws a random password on each run, restores the password policy and portal settings when it is purged, and its purge remains limited to the current entity.

Try it

Try CapCowork on a Dolibarr installed in under 20 seconds, with a demonstration coworking space already filled in: dolitest.fr/capcowork

Update

Upload the new version, then disable and re-enable the module. Day passes now depend on their own permission, "Manage day passes": grant it to the users who generate them, otherwise the menu disappears for them. Compatible with Dolibarr 18 to 23.