Summary
CVE-2022-51034 is an unauthenticated SQL injection vulnerability (CWE-89) in the Tangshan Pingsheng Reservoir Safety Supervision Platform, builds through 2022-11-30. A remote attacker can send crafted requests to a web service endpoint and extract information from the backend database. The CVE record rates it High severity (CVSS v4.0 score 8.8; CVSS v3.1 score 8.2).
Technical details
- Root cause: Improper neutralization of special elements in an SQL command. The
simcardIdparameter is not sanitized before use in a database query. - Vulnerable endpoint:
/WebServices/SIMMaintainService.asmx/GetAllRechargeRecordsBySIMCardId. - Trigger conditions: A crafted POST request to the endpoint. No authentication or user interaction is required.
- Attack vector: Network. The CVE record describes time-based MSSQL payloads.
- Impact: An attacker can extract database information, including the database user, version, and database name. The CVSS vectors indicate high confidentiality impact and low integrity impact.
- Exploitation: The CVE record lists public exploit references (a Goby PoC, a GitHub exploit and a Nuclei template). It notes that exploitation was first observed on 2024-07-30 and credits The Shadowserver Foundation as reporter.
Affected software
- Tangshan Pingsheng Electronic Technology Development Co., Ltd. Reservoir Safety Supervision Platform, builds through 2022-11-30.
Severity
- CVSS v3.1: 8.2 (High) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N - CVSS v4.0: 8.8 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Mitigation and recommended actions
- Immediate: No fixed version is identified in the CVE record. Contact the vendor for a patched build.
- Restrict network access to the platform, and in particular to
/WebServices/SIMMaintainService.asmx. Remove it from direct internet exposure, or place it behind a VPN or an IP allowlist. - Consider filtering requests to the affected endpoint at a web application firewall.
- Review web and database logs for anomalous or time-delayed requests to
GetAllRechargeRecordsBySIMCardId.

