Privilege escalation via raw SQL interpolation
Published Mar 22, 2024 · Updated Aug 23, 2024
SQL injection in NiuShop B2B2C 5.3.3 and earlier allows remote authenticated users to escalate privileges through the shop address API. The deleteArea path passes user-controlled id and level values into Address.php, where id is interpolated into a Db::raw expression without validation or binding. A shop-authenticated request with level 1 or 2 can execute crafted SQL, enabling database reads or writes and the reported privilege escalation.
Summary
What happened
SQL injection in NiuShop B2B2C 5.3.3 and earlier allows remote authenticated users to escalate privileges through the shop address API. The deleteArea path passes user-controlled id and level values into Address.php, where id is interpolated into a Db::raw expression without validation or binding. A shop-authenticated request with level 1 or 2 can execute crafted SQL, enabling database reads or writes and the reported privilege escalation.
The record
- CVE
- CVE-2024-28560
- Published
- Mar 22, 2024
- Updated
- Aug 23, 2024
- Vendor
- NiuShop
- Product
- NiuShop
- Classifications
- CWE-89, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 22, 2024CVE publishedPublication date reported by the CVE source.
- Aug 23, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=5.3.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Authenticated deleteArea SQL injection payloadsfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo