GHSA-pq2f-3fg3-rw99critical9.8
SQL Injection in WordPress Zero Spam WordPress plugin
Impact
The WordPress Zero Spam WordPress plugin before 5.2.13 does not properly sanitise and escape the order and orderby parameters before using them in a SQL statement in the admin dashboard, leading to a SQL injection
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
bmarshall511/wordpress_zero_spam Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 5.2.13Ecosystem versions | 5.2.13 |
Version evidence: OSV · GHSA-pq2f-3fg3-rw99
View original version evidence (0 explicit versions)
Original source description
The WordPress Zero Spam WordPress plugin before 5.2.13 does not properly sanitise and escape the order and orderby parameters before using them in a SQL statement in the admin dashboard, leading to a SQL injection
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-0254
- Patch github.com/Highfivery/zero-spam-for-wordpress/commit/49723f696f1e2f2a76ac89375910bb036a4895f3
- Source reference github.com/Highfivery/zero-spam-for-wordpress
- Patch plugins.trac.wordpress.org/changeset/2660225
- Patch plugins.trac.wordpress.org/changeset/2680906
- Security advisory wpscan.com/vulnerability/ae54681f-7b89-408c-b0ee-ba4a520db997