CVE-2026-61671
High

CVE-2026-61671: WeGIA Record Ownership Bypass and CSRF via /controle/control.php

CVE ID
CVE-2026-61671
Severity
HIGH
CVSS
8.1
CWE
CWE-352
Published
October 29, 2026

Summary

WeGIA, a web manager for charitable institutions, dispatches CRUD operations through /controle/control.php, where controller methods read, modify, and delete records without verifying that the authenticated caller owns the target record. Any authenticated user can therefore view, modify, or delete another user’s records, and two controllers additionally accept state-changing requests without CSRF validation. Version 3.8.7 is identified as patched.

Technical Analysis

The flaw centers on the /controle/control.php dispatcher. Per the advisory, the endpoint runs extract($_REQUEST), folding attacker-controlled nomeClasse (target controller class), metodo (target method), and record identifier parameters — including id, idatendido, idInterno, and id_funcionario — directly into scope. Authentication is enforced (the CVSS vector’s PR:L), but the individual CRUD methods never check whether the referenced record belongs to the calling user: a broken object-level authorization failure layered on top of a generic dispatcher.

The advisory enumerates the affected methods per controller. AtendidoControle lacks ownership checks on alterar, excluir, listarUm, alterarInfPessoal, alterarDocumentacao, alterarImagem, alterarEndereco, and alterarStatus. InternoControle lacks them on incluir, alterar, excluir, listarUm, listarTodos, and listarCpf. FuncionarioControle lacks them on alterarInfPessoal, alterarEndereco, alterarDocumentacao, alterarImagem, alterarCargaHoraria, and excluir. VoluntarioControle lacks them on alterarInfPessoal, alterarEndereco, alterarDetalhes, alterarImagem, and excluir.

A second weakness compounds the first: AtendidoControle and InternoControle lack CSRF validation entirely, so a malicious page visited by an authenticated victim can trigger state-changing operations with the victim’s session. FuncionarioControle and VoluntarioControle do perform per-method CSRF checks, but the advisory notes those checks do not prevent the object-authorization bypass, because a token validates the request’s origin rather than the record’s owner.

NVD maps the CVE to CWE-352 (CSRF), while the description documents both the missing per-record authorization and the missing CSRF validation. The CVSS vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N yields 8.1 HIGH: network-reachable, low attack complexity, only a low-privilege account required, no user interaction needed for the direct authorization-bypass path, and high confidentiality and integrity impact with no availability component. The advisory was published as GHSA-rf87-2prr-f2p2, and the CVE was assigned by GitHub_M.

Affected Software and Versions

  • Product: WeGIA, a web manager for charitable institutions (LabRedesCefetRJ/WeGIA on GitHub).
  • Affected: all versions prior to 3.8.7.
  • Patched: 3.8.7, per the release tag and referenced commits 5fd072a and 83ae8d1b.

Impact

  • Confidentiality (C:H): unauthorized reads expose CPF, RG, addresses, medical records, financial data, and employee records belonging to other users.
  • Integrity (I:H): the alterar/excluir method families let any authenticated user modify or delete records they do not own.
  • Availability (A:N): the CVSS vector assigns no availability impact.
  • Missing CSRF validation on AtendidoControle and InternoControle lets a third-party page drive state changes through an authenticated victim’s session.

Exploitation Scenario

Illustrative scenario derived from the advisory description. An attacker with any low-privilege account on a charitable institution’s WeGIA instance authenticates and sends requests to /controle/control.php, setting nomeClasse and metodo to select a vulnerable controller method and supplying another user’s record identifier through one of the dispatch’s identifier parameters (id, idatendido, idInterno, id_funcionario). Calling a read method such as AtendidoControle::listarUm or InternoControle::listarCpf with a foreign identifier returns that person’s data — CPF, RG, addresses, medical and financial records — because no ownership check runs. The same pattern with excluir or alterarStatus modifies or destroys the record.

A second variant abuses the missing CSRF validation: an attacker hosts a page that, when visited by an authenticated staff member, submits a request to /controle/control.php invoking a state-changing AtendidoControle or InternoControle method. Since these controllers perform no CSRF validation, the browser attaches the victim’s session and the operation executes under the victim’s privileges. Per the advisory, the per-method CSRF checks in FuncionarioControle and VoluntarioControle would not have prevented the ownership bypass either.

Detection and Mitigation

  • Upgrade to WeGIA 3.8.7, the version the advisory identifies as patched; the referenced fixes are commits 5fd072a416e3c85817f8b77d47a6d970345b0fc2 and 83ae8d1b417e0d8ef6a603ec5745f0967426ca6d.
  • Hunt access logs for requests to /controle/control.php whose nomeClasse/metodo combinations touch identifiers outside the caller’s own records.
  • The CVE is not listed in CISA KEV.

Proof-of-Concept: curl and Burp

The advisory names /controle/control.php, the dispatch parameters nomeClasse and metodo, and identifier parameters id, idatendido, idInterno, and id_funcionario; the requests below use only those values, pairing a read with a state-changing call against AtendidoControle. No CSRF token parameter appears because the advisory states AtendidoControle lacks CSRF validation.

curl​ -k -b "<SESSION_COOKIE>" "http://<TARGET>/controle/control.php?nomeClasse=AtendidoControle&metodo=listarUm&id=2"
curl​ -k -b "<SESSION_COOKIE>" "http://<TARGET>/controle/control.php?nomeClasse=AtendidoControle&metodo=excluir&id=2"
GET /controle/control.php?nomeClasse=AtendidoControle&metodo=listarUm&id=2 HTTP/1.1
Host: <TARGET>
Cookie: <SESSION_COOKIE>

GET /controle/control.php?nomeClasse=AtendidoControle&metodo=excluir&id=2 HTTP/1.1
Host: <TARGET>
Cookie: <SESSION_COOKIE>

For authorized testing only — test only systems you are permitted to test.

Bug Bounty Angle

  • Broken object-level authorization concentrated in one dispatcher is a high-signal finding: a single low-privilege account reaches every user’s CPF, RG, medical, and financial data.
  • The missing CSRF validation on AtendidoControle and InternoControle is a chainable second bug worth reporting separately with a same-session proof.
  • WeGIA’s source is public on GitHub, so the missing ownership checks can be verified against the referenced commits before submission.

References

Responsible use: this analysis is published for security research, authorized testing, defensive security and education. Only test or attempt exploitation on systems you are explicitly authorized to assess. Unauthorized access to computer systems is illegal.

Leave a Reply

Your email address will not be published. Required fields are marked *

// FAQ

Frequently Asked Questions

Answers to the most common questions about this vulnerability, drawn only from the verified evidence in the analysis above.

Q1 What is CVE-2026-61671?
A high-severity (CVSS 8.1) vulnerability in WeGIA before 3.8.7. The /controle/control.php dispatch endpoint lets any authenticated user view, modify, or delete other users’ records because CRUD methods skip ownership checks; AtendidoControle and InternoControle also lack CSRF validation.
Q2 How is CVE-2026-61671 fixed?
Upgrade to WeGIA 3.8.7, the version the advisory identifies as patched. The referenced fixes are commits 5fd072a and 83ae8d1b in the LabRedesCefetRJ/WeGIA repository, addressing the missing ownership and CSRF checks.