Ameeba Chat App store presentation
Download Ameeba Chat Today
Ameeba Blog Search

CVE-2025-58745: Arbitrary File Upload Vulnerability in WeGIA Web Manager for Charitable Institutions

Ameeba’s Mission: Safeguarding privacy by securing data and communication with our patented anonymization technology.

Overview

The Common Vulnerabilities and Exposures database has recently confirmed the existence of an arbitrary file upload vulnerability in the WeGIA Web manager for charitable institutions. This flaw allows an attacker to upload a webshell to the server for remote code execution, making it a high-risk vulnerability. As WeGIA is commonly used by various charitable institutions to manage their operations, this vulnerability could potentially affect a large number of organizations, exposing them to potential system compromise or data leakage.

Vulnerability Summary

CVE ID: CVE-2025-58745
Severity: Critical 9.9
Attack Vector: Network
Privileges Required: Low
User Interaction: None
Impact: Potential system compromise and data leakage due to arbitrary file upload and remote code execution

Affected Products

Ameeba Chat Icon Escape the Surveillance Era

Most apps won’t tell you the truth.
They’re part of the problem.

Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.

Ameeba Chat gives you a way out.

  • • No phone number
  • • No email
  • • No personal info
  • • Anonymous aliases
  • • End-to-end encrypted

Chat without a trace.

Product | Affected Versions

WeGIA Web Manager | Versions earlier than 3.4.11

How the Exploit Works

The exploit works by taking advantage of the fact that WeGIA only checks MIME types for Excel files at the endpoint `/html/socio/sistema/controller/controla_xlsx.php`. By using magic bytes of an Excel file in a PHP file, an attacker can bypass WeGIA’s MIME type check and upload a webshell to the server. This can lead to remote code execution, potentially compromising the entire system or leading to data leakage.

Conceptual Example Code

Here is a conceptual example of how the vulnerability might be exploited. The attacker sends a POST request with a crafted PHP file that contains the magic bytes of an Excel file.

POST /html/socio/sistema/controller/controla_xlsx.php HTTP/1.1
Host: target.example.com
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
{ "file": "<?php echo shell_exec($_GET['cmd']); ?>" }

In this example, the uploaded file is a PHP script that will execute any command passed to it via the ‘cmd’ GET parameter. This effectively allows the attacker to execute arbitrary commands on the server.

Mitigation

Users of WeGIA Web Manager are strongly advised to update their systems to version 3.4.11 or later, which contains a fix for this vulnerability. Until the update can be applied, it’s recommended to use a web application firewall (WAF) or intrusion detection system (IDS) as a temporary mitigation measure.

Talk freely. Stay anonymous with Ameeba Chat.

Disclaimer:

The information and code presented in this article are provided for educational and defensive cybersecurity purposes only. Any conceptual or pseudocode examples are simplified representations intended to raise awareness and promote secure development and system configuration practices.

Do not use this information to attempt unauthorized access or exploit vulnerabilities on systems that you do not own or have explicit permission to test.

Ameeba and its authors do not endorse or condone malicious behavior and are not responsible for misuse of the content. Always follow ethical hacking guidelines, responsible disclosure practices, and local laws.
Ameeba Chat