YiFang CMS Information Disclosure Vulnerability in Migrate.php Export Function

Vulnerability

An information disclosure vulnerability exists in YiFang CMS versions through 2.0.5. The issue arises in the 'exportInstallTable' function within 'app/utils/base/database/Migrate.php', where database information can be leaked without authentication. The vulnerability is accessible via the 'api/migrate/exportInstallTable' route, allowing unauthorized users to export database table structures and contents. This exploitation could be initiated remotely.

Impact

Exploitation of this vulnerability leads to unauthorized access to sensitive database information, including table structures and data, which could be misused for further attacks or to compromise the application.

Reproduction

To reproduce this vulnerability, send a request to the 'api/migrate/exportInstallTable' endpoint with the 'database' and 'version' parameters. No authentication is required to access this endpoint, and the response will include the exported database information.

Added: Aug 25, 2025, 12:17 AM
Updated: Aug 25, 2025, 12:17 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.