WeGIA: Unauthenticated SQL Injection in cadastro_cobranca.php via "codigo" parameter
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
WeGIA is a web manager for charitable institutions. Prior to 3.8.6, unauthenticated POST requests to web/html/socio/sistema/cadastro_cobranca.php can place a quoted SQL expression in the codigo parameter, which extract($_REQUEST) passes into the WHERE codigo= clause of an UPDATE statement without validation or parameter binding. Quoting the value bypasses MariaDB type conversion for the VARCHAR column and permits arbitrary SQL execution without a session. An attacker can read or modify database content, including user credential hashes and billing records in the cobrancas table. This issue is fixed in version 3.8.6.
Text from CVE List
Affected versions 1
- WeGIAaffected: < 3.8.6CVE List
References 5
- github.com/LabRedesCefetRJ/WeGIA/commit/f819be361f984592c4b5a35db830495b4e2263faFixvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.6Fixvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-fxcc-q2j6-w2rfAdvisoryvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/issues/184Referencevia CVE List
- github.com/LabRedesCefetRJ/WeGIA/pull/1705Referencevia CVE List