CVE-2022-51023 Details
Description
PHPOK 4.5.000 before 5.4.081 contains an SQL injection vulnerability that allows unauthenticated attackers to manipulate ORDER BY clauses via the sort parameter. Attackers can send GET requests to /api.php?c=project&f=index with extractvalue payloads in sort to extract database information through error messages. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.
A SQL injection vulnerability has been identified in PHPOK versions 4.5.000 prior to 5.4.081. This vulnerability allows unauthenticated attackers to manipulate ORDER BY clauses through the sort parameter. Exploitation involves sending GET requests to api.php with specific payloads that can extract database information via error messages. The vulnerability arises from improper handling of the sort parameter, which can be exploited to execute malicious SQL commands.
Users are advised to update PHPOK to version 5.4.081 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 22, 2026CISA-ADP
Assessed Oct 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml | [email protected] | ExploitTechnical Description |
| https://github.com/qinggan/phpok/commit/d70c396f | [email protected] | Source CodeVendor |
| https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| PHPOK | >= 4.5.000, < 5.4.081 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 29, 2026 | CVE Modified | CISA-ADP |
| Oct 22, 2026 | New CVE Received | [email protected] |
Volerion