Summary
The update_doc method in go1cms can be reached without authentication and permits changes to documents using caller-supplied fields. An unauthenticated attacker may modify User records to escalate privileges or take over accounts, or tamper with other business data.
Affected context
The issue affects the guest-whitelisted update_doc method in the TridotsTech go1cms master branch through commit 7f68d05 and the version-3 branch before commit ead8da3. Risk arises when this method is exposed to unauthenticated requests and saves caller-supplied document fields with permission checks ignored.
Exploit preconditions
- Attack surface: The guest-whitelisted
update_docmethod - Required access: No authentication is required when the method is reachable
- Trigger point: A request supplying a doctype, document name, and fields to update
- Why exploitation is possible: The method accepts the requested document data and saves it with
ignore_permissions=Truewithout requiring authentication
Why this happens
The method lacks an authentication check before performing a sensitive document update. It also saves changes while bypassing permission checks, allowing unauthenticated input to reach a privileged write operation. This is primarily CWE-306: Missing Authentication for Critical Function.
Potential impact
- An attacker may alter User records or other documents
- Changes to User records could enable privilege escalation or account takeover
- Business data could be tampered with, affecting its integrity
- Unauthorized document changes could disrupt application workflows
General mitigation guidance
Defensive patterns focus on requiring verified identity and authorization before any sensitive write operation.
- Keep document-update methods unavailable to unauthenticated users by default
- Check permissions for the specific user, document type, record, and fields being changed
- Avoid bypassing permission checks for data derived from caller input
- Limit accepted fields and validate updates against a strict schema
- Apply least privilege to service identities and separate sensitive operations from guest-accessible functionality
How teams detect issues like this
- Review guest-whitelisted routes and methods for writes to persistent records
- Use static analysis or code review rules to flag sensitive operations without authentication and authorization checks
- Search for permission-bypass options such as
ignore_permissions=True, especially where values originate from requests - Test access-control policies to confirm unauthenticated requests cannot update documents
- Enforce policies that require authentication and authorization checks for all state-changing endpoints

