提出 #919744: Frappe Technologies Pvt. Ltd. Frappe HR v16.15.0 Authorization Bypass Through User-Controlled Key (CWE-639)情報

タイトルFrappe Technologies Pvt. Ltd. Frappe HR v16.15.0 Authorization Bypass Through User-Controlled Key (CWE-639)
説明Frappe HR v16.15.0 contains a shared IDOR flaw across get_expense_claims, get_shift_requests and get_attendance_requests APIs, allowing authenticated users to read other employees' financial and attendance records via uncontrolled employee parameter. Vulnerability Overview A cross-user authorization bypass (CWE-639) exists in multiple APIs sharing the unsafe get_filters helper function in hrms/api/__init__.py v16.15.0. Affected functions: get_expense_claims (516-557), get_shift_requests (179-215), get_attendance_requests (218-253). The shared get_filters function directly uses attacker-supplied employee ID without permission validation when for_approval=false, enabling horizontal privilege escalation. Vulnerable Logic get_expense_claims passes user-controlled employee parameter to get_filters; line 281 sets filters.employee = employee with no frappe.has_permission("Employee", "read", employee) verification. The query returns full records of the target employee’s expense claims, shift requests and attendance logs. Attack Vector Authenticated remote HTTP POST to /api/method/hrms.api.get_expense_claims with JSON body: {"employee": "EMP-TARGET-001"} Valid session cookie is the only requirement. The same exploitation pattern applies to get_shift_requests and get_attendance_requests endpoints. Impact Attackers can retrieve third-party employees’ expense amounts, approval status, shift schedules and attendance history, leaking sensitive financial and work-time data across the organization. Root Cause & Remediation Root cause: The get_filters helper does not validate whether the requesting user has read access to the target employee record before applying user-controlled filter values. Reference: get_expense_claim_summary safely restricts data to current authenticated employee via get_current_employee(). CVSS v3.1 Score: 6.5 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Discoverer: [Ordinaryzyx]
ソース⚠️ https://github.com/frappe/hrms
ユーザー
 zyx122126 (UID 100375)
送信2026年08月09日 13:44 (2 月 ago)
モデレーション2026年09月27日 12:58 (2 months later)
ステータス承諾済み
VulDBエントリ410876 [Frappe HR 迄 16.15.0 Permission Validation hrms/api/__init__.py employee 特権昇格]
ポイント19

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!