LabRedesCefetRJ WeGIA
WeGIA: Authenticated Privilege Escalation due to Missing Action-level Authorisation
WeGIA is a web manager for charitable institutions. Prior to 3.9.1, web/controle/control.php authorizes FuncionarioControle requests only by checking whether an authenticated employee has a permission row for resource 11 or 91, while MiddlewareDAO::verificarPermissao() does not compare the stored id_acao value or authorize the requested method. An employee with any such permission and a valid CSRF token from the employee's own session can invoke FuncionarioControle::adicionarPermissao, FuncionarioControle::alterarPermissao, or FuncionarioControle::excluirPermissao to add, change, or remove permissions for arbitrary roles. This can grant higher action levels over sensitive resources, expose or modify protected employee, patient, configuration, and administrative data, or disrupt legitimate access by changing other roles. This issue is fixed in version 3.9.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.9.1
Fixed in 3.9.1
Mitigation
Upgrade WeGIA to 3.9.1 or later.
References
- Vendor advisory github.com/LabRedesCefetRJ/WeGIA/security/advi…
- Patch github.com/LabRedesCefetRJ/WeGIA/pull/1892
- Patch github.com/LabRedesCefetRJ/WeGIA/commit/9fb18f…
1 more
- Release notes github.com/LabRedesCefetRJ/WeGIA/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.