Summary
Certain Frappe HRMS record-update endpoints do not check whether an authenticated user is authorized to change the target employee's record. An Employee-role user may therefore modify records belonging to other employees, putting the integrity and confidentiality of HR data at risk.
Affected context
The issue affects certain record-update endpoints in Frappe HRMS 15.0.0 before 15.64.2 and 16.0.0 before 16.20.0. It becomes a concern when an endpoint accepts a record update from an authenticated Employee-role user without checking that the user is permitted to modify the specific record.
Exploit preconditions
- Attack surface: Record-update endpoints in Frappe HRMS
- Required access: An authenticated account with the Employee role
- Trigger point: A request to update a record belonging to another employee
- Why exploitation is possible: The affected endpoint does not enforce an ownership or equivalent authorization check for the target record
Why this happens
The underlying bug is a missing authorization check at the point where a record update is handled. Authentication and role membership alone do not establish permission to modify every record; the application must also verify access to the specific target object. This is an instance of CWE-862: Missing Authorization.
Potential impact
- An attacker may alter other employees' records without permission.
- Unauthorized changes could affect the accuracy of HR data and related workflows.
- Depending on the records exposed, sensitive information could be indirectly affected or misused.
General mitigation guidance
Defensive patterns focus on enforcing authorization for every operation on a specific record.
- Check the authenticated user's permission to update the target record on the server side.
- Apply ownership, organizational-scope, or delegated-access rules consistently across update endpoints.
- Deny access by default when authorization cannot be established.
- Minimize the permissions granted to user roles and avoid relying on client-side checks.
- Include authorization checks in shared service or data-access layers where appropriate, while preserving endpoint-specific policy requirements.
How teams detect issues like this
- Review record-update handlers for authorization checks tied to the specific target record, not just authentication or role membership.
- Use static analysis or code review rules to flag update paths that load or modify records without an associated permission check.
- Add policy tests that verify users cannot update records outside their ownership or authorized scope.
- Monitor audit logs for employee accounts making changes to records outside their expected scope.
- Automated code review tools may help identify endpoints with inconsistent access-control enforcement.

