Summary
CVE-2022-51022 is an unauthenticated path traversal vulnerability in YiShaAdmin 2.2 through 3.1. A remote attacker can read and delete arbitrary files on the server through the /admin/File/DownloadFile endpoint. The CVE record lists a CVSS v4.0 score of 8.8 (High) and a CVSS v3.1 score of 9.1 (Critical).
Technical details
- Root cause: The
/admin/File/DownloadFileendpoint doesn’t properly restrict thefilePathparameter (path traversal). - Trigger conditions: The attacker needs network access to the endpoint. No authentication or user interaction is required.
- Attack vector: A remote request to
/admin/File/DownloadFilewith a craftedfilePathvalue. - Impact: An attacker can read and delete arbitrary files, so confidentiality and availability are affected.
- The CVE record gives a public disclosure date of 2022-05-25. It also notes that the Shadowserver Foundation first observed exploitation on 2023-10-20.
Affected software
- YiShaAdmin 2.2 through 3.1 (vulnerable)
- Fixed in commit
025b0628b1295bd2d9fd6c9b5b82692a345151ef
Severity
- CVSS v4.0: 8.8 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 9.1 (Critical) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Mitigation and recommended actions
- Immediate: Update YiShaAdmin to a build that includes fix commit
025b062(025b0628b1295bd2d9fd6c9b5b82692a345151ef) or later. - If you can’t update right away, restrict network access to the YiShaAdmin administration interface. Block or filter requests to
/admin/File/DownloadFileat a reverse proxy or WAF. This workaround is a general precaution and isn’t taken from the vendor fix. - Review web server logs for requests to
/admin/File/DownloadFilewith unexpectedfilePathvalues.

