Summary
Microweber's Generic API Dispatcher has an improper access control flaw in UserManager::make_logged. A remote attacker may be able to access functionality without the intended authorization, depending on the exposed API and its access controls.
Affected context
The issue is reported in Microweber through version 2.0.20, in UserManager::make_logged in src/MicroweberPackages/App/Http/Controllers/ApiController.php, within the Generic API Dispatcher. Risk depends on whether the affected API functionality is reachable and whether surrounding authorization controls limit access.
Exploit preconditions
- Attack surface: The Generic API Dispatcher must be reachable remotely.
- Required access: The description does not establish whether authentication or a particular account level is required.
- Trigger point: A request must reach the affected
UserManager::make_loggedfunction. - Why exploitation may be possible: Access-control checks may not sufficiently restrict the function or the actions it enables.
Why this happens
The reported flaw is an access-control weakness: the application may not consistently verify that a requester is authorized to perform an operation before allowing it. This maps to CWE-284: Improper Access Control and is also associated with CWE-266: Incorrect Privilege Assignment, which concerns assigning or applying privileges incorrectly.
Potential impact
- An attacker may gain access to functionality not intended for their role.
- Unauthorized actions could be performed through the affected API path.
- Depending on the permissions involved, account or application data could be exposed or modified.
General mitigation guidance
Defensive patterns include enforcing authorization checks on the server for every sensitive operation, using deny-by-default access policies, and verifying that permissions match the requested action and resource. Treat client-supplied identity or role information as untrusted, and apply least privilege to accounts and service components. Centralized authorization logic and consistent policy enforcement can help reduce gaps across API routes.
How teams detect issues like this
Review the affected API path and related handlers for missing or inconsistent authorization checks, especially checks based only on client-supplied state. Use static analysis and code review to identify sensitive operations that lack explicit permission enforcement. Monitor API activity for unexpected calls or actions, and use automated policy checks to verify that routes and operations have defined authorization requirements.

