WeGIA: Pre-auth Installer Injection Chain Enables Command Execution and Arbitrary PHP Code Injection
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, the pre-installation web/instalador/instalador.php endpoint is reachable before config.php exists and processes unauthenticated installation POST data. In the Linux reinstall flow, a crafted usuario value reaches a command executed by shell_exec(). The installer also writes attacker-controlled values into executable config.php and concatenates the database name nomebd into a CREATE DATABASE statement. Successful exploitation can execute commands as the web-server user, persist attacker-controlled PHP configuration, and alter or disrupt the application and its data. 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/b13c4b0b416d99a8145f583e0893bc8172155469Fixvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.6Fixvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-wm6j-4rfm-399qExploitvia CVE List
- github.com/LabRedesCefetRJ/WeGIA/issues/96Referencevia CVE List
- github.com/LabRedesCefetRJ/WeGIA/pull/1705Referencevia CVE List