Skip to main content
Vulnerability Database/CVE-2024-11458

CVE-2024-11458: FAQ Builder AYS WordPress Plugin XSS Flaw

CVE-2024-11458 is a reflected cross-site scripting vulnerability in the FAQ Builder AYS WordPress plugin that allows attackers to inject malicious scripts. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-11458 Overview

CVE-2024-11458 is a Reflected Cross-Site Scripting (XSS) vulnerability in the FAQ Builder AYS plugin for WordPress. The flaw affects all versions up to and including 1.7.1. The plugin fails to properly sanitize input or escape output for the ays_faq_tab parameter. Unauthenticated attackers can inject arbitrary JavaScript that executes in a victim's browser when the victim clicks a crafted link. The weakness is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Unauthenticated attackers can execute arbitrary scripts in a victim's browser session, enabling credential theft, session hijacking, and administrative account takeover when a WordPress administrator is targeted.

Affected Products

  • FAQ Builder AYS WordPress plugin version 1.7.0
  • FAQ Builder AYS WordPress plugin version 1.7.1
  • All prior versions of FAQ Builder AYS up to 1.7.1

Discovery Timeline

  • 2024-11-28 - CVE-2024-11458 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-11458

Vulnerability Analysis

The vulnerability is a Reflected XSS flaw triggered through the ays_faq_tab HTTP parameter processed by the plugin's admin actions handler. The affected code path resides in admin/partials/faq-builder-ays-admin-actions.php at approximately line 281, as referenced in the WordPress plugin repository. User-supplied input from the request parameter is rendered back into the HTML response without proper sanitization or output escaping. Any script payload supplied in the parameter is reflected into the DOM and executed in the context of the WordPress site. Successful exploitation requires user interaction, typically clicking a specially crafted link.

Root Cause

The root cause is missing input sanitization and missing output escaping around the ays_faq_tab request parameter. WordPress provides functions such as sanitize_text_field() for input and esc_attr() or esc_html() for output, but neither was applied to this parameter prior to version 1.7.2. This classifies the issue under [CWE-79], Improper Neutralization of Input During Web Page Generation.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker crafts a URL containing a malicious payload in the ays_faq_tab parameter and delivers it through phishing, social engineering, or an untrusted web page. When a WordPress user, particularly an authenticated administrator, follows the link, the injected JavaScript executes within the trusted origin of the WordPress site. Attacker-controlled script can steal session cookies, perform actions as the victim, or stage further attacks against the WordPress admin interface.

No public exploit is listed in Exploit-DB and the CVE is not present on the CISA Known Exploited Vulnerabilities list. See the Wordfence Vulnerability Report and the FAQ Builder AYS v1.7.1 source for technical details.

Detection Methods for CVE-2024-11458

Indicators of Compromise

  • HTTP requests to WordPress endpoints containing the ays_faq_tab parameter with URL-encoded <script>, javascript:, or event handler payloads such as onerror= and onload=.
  • Referer headers pointing to external domains preceding suspicious ays_faq_tab parameter values.
  • WordPress administrator account activity originating from unexpected IP addresses shortly after a phishing campaign.

Detection Strategies

  • Deploy a Web Application Firewall (WAF) rule to flag non-alphanumeric or script-like content in the ays_faq_tab query parameter.
  • Review WordPress access logs for GET requests containing ays_faq_tab= combined with angle brackets or percent-encoded script tags.
  • Monitor plugin inventory for installations of FAQ Builder AYS at version 1.7.1 or earlier.

Monitoring Recommendations

  • Centralize WordPress and reverse-proxy logs in a SIEM and alert on anomalous query strings targeting ays_faq_tab.
  • Correlate admin login events with recent clicks on externally referred URLs that include the vulnerable parameter.
  • Track browser-side Content Security Policy (CSP) violation reports to identify blocked inline script executions.

How to Mitigate CVE-2024-11458

Immediate Actions Required

  • Upgrade the FAQ Builder AYS plugin to version 1.7.2 or later on all WordPress installations.
  • Audit WordPress sites for the presence of the vulnerable plugin using the plugin inventory or wp plugin list.
  • Rotate WordPress administrator session cookies and reset credentials if suspicious activity is observed.

Patch Information

The vendor addressed the issue in FAQ Builder AYS version 1.7.2. Compare the fixed code against the vulnerable version at the v1.7.2 source and the v1.7.1 source. Site operators should apply the update through the WordPress plugin manager or via WP-CLI.

Workarounds

  • If immediate patching is not possible, deactivate and remove the FAQ Builder AYS plugin until the update can be applied.
  • Deploy a WAF rule that blocks requests containing script metacharacters in the ays_faq_tab parameter.
  • Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of reflected payloads.
bash
# Update the FAQ Builder AYS plugin using WP-CLI
wp plugin update faq-builder-ays --version=1.7.2

# Verify the installed version
wp plugin get faq-builder-ays --field=version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.