# WeGIA 控制.php 开放重定向漏洞
## 概述
WeGIA 是一个慈善机构的 Web 管理系统。在 3.6.2 之前版本中,其 `/WeGIA/controle/control.php` 接口存在开放重定向漏洞。
## 影响版本
3.6.2 之前的所有版本。
## 细节
漏洞存在于 `/WeGIA/controle/control.php` 接口的 `nextPage` 参数中,当请求参数包含 `metodo=listarTodos` 且 `nomeClasse=DestinoControle` 时触发。系统未对 `nextPage` 参数进行有效验证或限制,攻击者可构造恶意链接,将用户重定向至任意外部网站。
## 影响
攻击者可利用该漏洞实施钓鱼攻击、窃取用户凭证、传播恶意软件或进行社会工程攻击,且因链接源自可信的 WeGIA 域名,增加了欺骗性。该漏洞已在 3.6.2 版本中修复。
是否为 Web 类漏洞: 未知
判断理由:
| # | POC 描述 | 源链接 | 神龙链接 |
|---|
标题: Securities 260105 by GabrielPintoSouza · Pull Request #1333 · LabRedesCefetRJ/WeGIA · GitHub -- 🔗来源链接
标签:x_refsource_MISC
神龙速读:
### 关键信息
- **提交者**: GabrielPintoSouza
- **合并者**: nilsonLazarin
- **提交数量**: 20
- **更改文件数量**: 146
- **漏洞修复记录**:
- [GHSA-g7hh-6qj7-mcqf](#)
- [GHSA-xfmp-2hf9-gfjp](#)
- [GHSA-3r3q-8573-q3cq](#)
- [GHSA-c85q-4fwg-99gw](#)
- [GHSA-h7qx-j7g3-7fx3](#)
- [GHSA-pmq9-8p4w-m4f3](#)
- [GHSA-jf25-p56f-wpqh](#)
- [GHSA-w88p-v7h6-m728](#)
- [GHSA-6qx4-6qwv-cxc3](#)
- [GHSA-99qp-hjvh-c59q](#)
- **解决的漏洞类型**:
- XSS (跨站脚本攻击)
- SQL Injection (SQL注入)
- Open Redirect (开放重定向)
- Implementation of security headers (安全头部的实现)
- **合并时间**: 4 天前
标题: Release 3.6.2 · LabRedesCefetRJ/WeGIA · GitHub -- 🔗来源链接
标签:x_refsource_MISC
神龙速读:
从网页截图中,可以提取到以下关于漏洞的关键信息:
- **版本信息**:
- 当前最新版本为3.6.2,由 @nilsonlazarin 在4天前发布。
- **漏洞修复**:
- 该版本包含了一个安全更新,编号为260105,由 @GabrielPintoSouza 在 #1333 中提交。
- **变更日志**:
- 完整变更日志可从 [3.6.1...3.6.2](#) 获取。
这些信息表明,版本3.6.2可能修复了一个或多个安全漏洞,并且用户应当及时更新到该版本以保护系统安全。
标题: Open Redirect Vulnerability in control.php Endpoint via nextPage Parameter (metodo=listarTodos, nomeClasse=DestinoControle) · Advisory · LabRedesCefetRJ/WeGIA · GitHub -- 🔗来源链接
标签:x_refsource_CONFIRM
神龙速读:
## Vulnerability Details
- **Vulnerability Type**: Open Redirect
- **Severity**: Moderate (CVSS v4.0 Score: 4.8/10)
- **Affected Versions**: <= 3.6.1
- **Patched Version**: 3.6.2
### Summary
An Open Redirect vulnerability was identified in the `/WeGIA/controle/control.php` endpoint of the WeGIA application. The vulnerability is triggered via the `nextPage` parameter when combined with `metodo=listarTodos` and `nomeClasse=DestinoControle`.
### Impact
- Redirect users to phishing pages designed to steal credentials.
- Redirect users to malicious sites hosting malware or dangerous content.
- Perform social engineering attacks using trusted URLs from the WeGIA domain.
- Potentially interfere with authentication or session-handling flows.
- Damage user trust in the WeGIA platform.
### Proof of Concept (PoC)
#### Request
```http
GET /WeGIA/controle/control.php?metodo=listarTodos&nomeClasse=DestinoControle&nextPage=https%3A%2F%2Fgoogle.com HTTP/1.1
Host: sec.wegia.org:8000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64 … etc.)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://sec.wegia.org:8000/WeGIA/html/matPat/listar_entrada.php
Connection: keep-alive
Cookie: {COOKIE}
```
#### Behavior
The server accepts the crafted request and redirects the victim to `https://google.com` instead of restricting navigation to the application's own domain.
### Recommendation
- Implement strict allowlist validation for redirect parameters (only allow internal pages under the same domain).
- If redirection is required, enforce the use of relative paths, such as `/home` or `/dashboard`, instead of absolute external URLs.
- Encode, sanitize, and validate all user-supplied input before processing redirects.
- Consider adding a confirmation page warning users before leaving the trusted domain.
暂无评论