Summary
WeGIA's billing-record creation endpoint does not check whether a requester has an authenticated session. An unauthenticated remote user who supplies valid billing parameters may create billing entries, potentially manipulating financial data or disrupting operations.
Affected context
The issue affects WeGIA deployments using web/html/socio/sistema/cadastro_cobranca.php in versions prior to 3.8.7. The endpoint can create billing records without verifying that the requester has an authenticated session.
Exploit preconditions
- Attack surface: The billing-record creation endpoint is reachable over the network.
- Required access: No authenticated session is required.
- Trigger point: A request to create a billing record with valid billing parameters.
- Why exploitation is possible: The endpoint does not enforce an authentication or authorization check before creating the record.
Why this happens
The endpoint performs a sensitive billing operation without verifying that the requester is authorized to perform it. This is a missing authorization control, mapping to CWE-862: Missing Authorization. Sensitive actions should be protected by server-side access checks rather than relying on the requester's identity or the validity of submitted parameters.
Potential impact
- An unauthenticated user may create unauthorized billing entries.
- Financial records may be manipulated or made inaccurate.
- Staff may need to spend time investigating and correcting fraudulent entries.
- Billing workflows and related operations could be disrupted.
General mitigation guidance
Defensive patterns include requiring server-side authentication and authorization for every billing operation, and checking that the authenticated user has permission to create records. Treat submitted parameters as untrusted, validate them against business rules, and use secure-by-default access controls that deny requests unless permission is explicitly granted. Apply least privilege to accounts and services that can create or modify billing data.
How teams detect issues like this
Review sensitive endpoints for authorization checks performed before any state-changing operation. Static analysis and code review can look for billing-record creation paths that lack access-control enforcement or rely only on client-side checks. Monitor audit logs for billing entries created without an associated authenticated user, and enforce policies requiring authorization controls on all routes that modify financial data.

