| 标题 | Zhengzhou Weiwei Information Technology Co., Ltd. (mymps.com.cn mayicms 5.8E(affected: <= 5.8E) SQL Injection |
|---|
| 描述 | Unauthenticated SQL injection in mayicms (mymps, 马蚁分类信息系统) 5.8E and earlier.
Vulnerable endpoint: GET /box.php?part=member&userid=<payload>
The parameter "userid" is taken from $_REQUEST and only passed through
mhtmlspecialchars() (which escapes & " < > but NOT the single quote), then
concatenated directly into:
SELECT userpwd,if_corp,id FROM `<prefix>member` WHERE userid = '$userid'
(box.php:36 -> include/box/member.php:6). box.php does not load global.php,
so the global maddslashes filter does not apply to this entry point.
No authentication is required. An attacker can extract the MySQL version,
current database, DB user, and read arbitrary tables including member
password hashes (userpwd) via error-based (UPDATEXML/EXTRACTVALUE) or UNION
injection.
NOT the same as CVE-2025-4514: that CVE affects the "value" parameter of
/javascript.php. This issue is in a different file (box.php) with a
different parameter (userid) on a separate code path (include/box/member.php),
and is reachable without authentication. It is a distinct vulnerability.
Not found in public CVE/CNVD records at time of submission.
Root cause: mhtmlspecialchars() does not escape single quotes; box.php
reads from $_REQUEST and does not load the global filter; SQL is built by
string concatenation via mysql_query.
Suggested fix: apply addslashes()/prepared statements to userid, force
intval() where numeric, load global.php consistently, disable SQL error
output on production pages (halt()). |
|---|
| 用户 | hungry0n0 (UID 102525) |
|---|
| 提交 | 2026-10-27 03時19分 (29 日前) |
|---|
| 管理 | 2026-11-25 07時58分 (29 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 443653 [Zhengzhou Weiwei Information Technology mayicms 直到 5.8E /box.php?part=member userid SQL注入] |
|---|
| 积分 | 17 |
|---|