Summary
Frappe HRMS has a bulk record processing action that can modify data without checking whether the user has write permission on the related setup record. An authenticated user with only read access to that record, including a user with the default Employee role, may be able to create and submit records for covered employees.
Affected context
The issue affects Frappe HRMS versions 15.0.0 before 15.64.1 and 16.0.0 before 16.19.0. It occurs in a bulk record processing action where the user's write permission on the related setup record is not checked before data is modified.
Exploit preconditions
- Attack surface: The HRMS bulk record processing action
- Required access: An authenticated account with read access to the related setup record; the description notes that the default Employee role can meet this condition
- Trigger point: Running the bulk action
- Why exploitation is possible: The action does not enforce a write permission check before creating and submitting records for covered employees
Why this happens
The application performs a data-modifying operation without verifying that the requesting user is authorized to make that change. This is a missing authorization check, mapped to CWE-862: Missing Authorization. The insecure pattern is relying on access to a related read-only record as sufficient authority to invoke a bulk action that writes data.
Potential impact
- Users with read-only access may be able to create and submit records
- Records for multiple covered employees could be affected by a single bulk action
- Unauthorized changes could undermine the integrity of HR data
General mitigation guidance
Mitigation generally focuses on enforcing authorization at the point where each data-changing operation occurs.
- Require explicit write permission for the relevant setup record and any affected records
- Apply server-side authorization checks to bulk actions, rather than relying on interface visibility or client-side controls
- Use least-privilege role assignments and secure-by-default permission policies
- Treat requests from authenticated users as untrusted until their permissions are verified
How teams detect issues like this
- Review bulk actions and server-side handlers for data writes that lack explicit permission checks
- Use static analysis or code review rules to flag write operations reachable from read-authorized endpoints
- Test role and permission boundaries, including default and read-only roles, in authorization tests
- Enforce policies requiring server-side authorization for every data-changing operation
Automated code review tools may help identify missing checks, but findings should be validated against the application's permission model.

