Authorization Bypass in metasfresh DocumentAttachmentsRestController and CommentsRestController
Authenticated attackers can exploit improper record-level authorization checks in metasfresh ERP to perform unauthorized read, write, and delete operations on attachments and comments.
The metasfresh ERP platform contains a critical authorization flaw (CVE-2026-92752) affecting the DocumentAttachmentsRestController and CommentsRestController endpoints. The vulnerability stems from the application verifying only that a user is authenticated, while failing to validate record-level permissions for the requested resources. This oversight allows an authenticated user to perform unauthorized actions on data restricted to other roles. By enumerating sequential document or comment identifiers, an attacker can access, modify, or delete sensitive attachments and comments belonging to records they should not have visibility into. Given the sensitive nature of business documents and communication within an ERP system, this flaw poses a high risk to data confidentiality and integrity. The issue allows for mass enumeration and data manipulation, which could be leveraged to exfiltrate proprietary information or disrupt business workflows by deleting critical project comments and files.
Impact
The vulnerability enables unauthorized access to sensitive business data within the metasfresh ERP environment. Impacted organizations face potential data breaches of customer information, project details, and financial documentation through the unauthorized exfiltration of attachments. Furthermore, the ability to replace or delete comments and attachments can result in data loss or the corruption of audit trails, impacting business continuity and compliance efforts.
Recommendation
- Monitor web server logs for suspicious enumeration patterns, such as a high volume of sequential requests to DocumentAttachmentsRestController or CommentsRestController endpoints from a single user session.
- Implement strict access control lists at the application level to ensure that user sessions are validated against specific record IDs before granting read, write, or delete permissions.
- Review audit logs for abnormal patterns of document deletion or modification originating from unauthorized user roles.
- Ensure all instances of metasfresh ERP are updated to the latest version once a patch is provided by the vendor.
Immediate actions
Review access logs for high-frequency requests to REST controllers
Mitigations
Patch metasfresh ERP once the vendor releases a fixed version addressing CVE-2026-92752
CVE-2026-92752