---
id: CVE-2026-61671
title: >-
  WeGIA: Systemic IDOR + Missing CSRF — extract($_REQUEST) in All Controle
  Classes
summary: >-
  WeGIA is a web manager for charitable institutions. Prior to the advisory's
  stated patched version 3.8.7, the `/controle/control.php` dispatch endpoint
  accepts attacker-controlled `nomeClasse`, `metodo`, and record identifier
  parameters …
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-352
  - CWE-639
vendor: LabRedesCefetRJ
product: WeGIA
affected:
  - WeGIA < 3.8.7
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-30T17:06:03.834852Z'
exploitAvailable: true
published: '2026-10-29'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T17:06:30.196Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-61671'
references:
  - url: >-
      https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-rf87-2prr-f2p2
    label: >-
      https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-rf87-2prr-f2p2
  - url: 'https://github.com/LabRedesCefetRJ/WeGIA/issues/492'
    label: 'https://github.com/LabRedesCefetRJ/WeGIA/issues/492'
  - url: >-
      https://github.com/LabRedesCefetRJ/WeGIA/commit/5fd072a416e3c85817f8b77d47a6d970345b0fc2
    label: >-
      https://github.com/LabRedesCefetRJ/WeGIA/commit/5fd072a416e3c85817f8b77d47a6d970345b0fc2
  - url: >-
      https://github.com/LabRedesCefetRJ/WeGIA/commit/83ae8d1b417e0d8ef6a603ec5745f0967426ca6d
    label: >-
      https://github.com/LabRedesCefetRJ/WeGIA/commit/83ae8d1b417e0d8ef6a603ec5745f0967426ca6d
  - url: 'https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7'
    label: 'https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7'
tags:
  - cve.org
  - exploit-available
epss: 0.00163
epssPercentile: 0.05516
ingestedAt: '2026-11-05T16:24:31.129Z'
---

## Overview

WeGIA is a web manager for charitable institutions. Prior to the advisory's stated patched version 3.8.7, the `/controle/control.php` dispatch endpoint accepts attacker-controlled `nomeClasse`, `metodo`, and record identifier parameters through `extract($_REQUEST)`, including id, `idatendido`, `idInterno`, and `id_funcionario`, while the affected Controle CRUD methods do not verify record ownership. Any authenticated user can view, modify, or delete another user's records, exposing CPF, RG, addresses, medical records, financial data, and employee records. `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 ownership checks on `alterarInfPessoal`, `alterarEndereco`, `alterarDocumentacao`, `alterarImagem`, `alterarCargaHoraria`, and excluir; `VoluntarioControle` lacks them on `alterarInfPessoal`, `alterarEndereco`, `alterarDetalhes`, `alterarImagem`, and excluir. `AtendidoControle` and `InternoControle` additionally lack CSRF validation, allowing a malicious page visited by an authenticated victim to perform state-changing operations using the victim's session. `FuncionarioControle` and `VoluntarioControle` have per-method CSRF checks, but those checks do not prevent the object-authorization bypass. The advisory identifies version 3.8.7 as patched.

## Affected

- `WeGIA < 3.8.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
