ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce <= 2.0.0 - Unauthenticated Missing Authorization to Leave Request Disclosure and Moderation via Department Lead Check

Medium 6.5 CWE-863Fixed in 2.0.1
ID
WPSEC-2026-3813
Plugin
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce (erp)
Affected
from 2.0.0 before 2.0.1
Remediation
Update to 2.0.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-863
Usage
Plugin Low · Affected versions None seen among sites WPSec scans, 2026-11-24
Attack surface
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The ERP plugin for WordPress is vulnerable to unauthorized access via the erp/v2 leave-requests REST API endpoints in version 2.0.0, due to the department lead checks (erp_hr_is_current_user_dept_lead() and erp_hr_match_user_dept_lead_with_current_user()) comparing the current user ID loosely against stored lead IDs without requiring a logged-in user. A department with no lead stores 0, which equals a logged-out visitor's user ID. This makes it possible for unauthenticated attackers, on sites with at least one department without a lead, to list the leave requests of all employees and to approve or reject leave requests of employees in departments without a lead.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0