Summary
Iceburg CRM has an authorization flaw in Module::saveRecord() that may let authenticated users with write access to one module write to another module they are not authorized to modify. Crafted requests may also allow a user to elevate their role to Admin and access administrative data.
Affected context
The issue is reported in Iceburg CRM through version 5.0.0, in record-saving requests handled by Module::saveRecord(). It may arise when authorization checks do not correctly bind submitted record fields to the module the user is permitted to modify. The affected request paths include POST /data/save and PUT /api/crm/{id}.
Exploit preconditions
- Attack surface: Authenticated CRM record-saving requests
- Required access: Write access to at least one module
- Trigger point: Processing a request through
POST /data/saveorPUT /api/crm/{id} - Why exploitation is possible: Module authorization may be derived incorrectly from request field names, allowing a write to target a module beyond the user's permissions.
Why this happens
The underlying issue is an authorization check that does not reliably verify the user's permission for the module being modified. When request data can influence module selection without being securely bound to the authorized target, a user with limited write access may affect records or fields outside that scope. This maps to CWE-863: Incorrect Authorization.
Potential impact
- An authenticated user may modify records in unauthorized modules.
- A user may be able to elevate their role to Admin.
- Administrative or otherwise restricted data could be accessed or changed.
- Unauthorized changes may affect the integrity of CRM data and administrative controls.
General mitigation guidance
Defensive patterns focus on enforcing authorization at the point of every record operation:
- Derive the target module from trusted server-side context rather than client-controlled field names.
- Check the authenticated user's permissions against the specific module and record being changed.
- Apply authorization checks consistently to create and update operations, including role changes.
- Treat request fields as untrusted and validate them against an explicit schema and allowlist.
- Follow least privilege for user roles and separate administrative capabilities from ordinary module access.
How teams detect issues like this
Review record-saving code for authorization decisions based on request parameters or field names, and verify that checks apply to the final target module and record. Static analysis and code review can flag endpoints that accept client-controlled module identifiers or permit sensitive role fields to be updated. Monitoring can also alert on cross-module writes, unexpected role changes, and administrative access following changes to account privileges.

