CVE-2019-25786 in Gnuboard5
Summary
by MITRE • 11/18/2026
Gnuboard5 5.0.1 before 5.3.3.3 and 5.4.0.1 before 5.4.0.2 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject scripts through the arr_ajax_msg parameter. Attackers can craft GET requests to /plugin/sms5/ajax.sms_emoticon.php, where common.php's @extract($_GET) injects the value into the echoed JSON output, executing script in victims' browsers. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-23.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/18/2026
Gnuboard is a widely used open-source content management system and bulletin board software that powers numerous websites across various industries, particularly in regions where Korean language support is critical. The vulnerability identified affects specific legacy versions of this platform, namely Gnuboard5 version 5.0.1 through 5.3.3.3 and version 5.4.0.1 through 5.4.0.2. This security flaw represents a significant risk to the confidentiality, integrity, and availability of systems running these unpatched versions, as it allows for remote code execution via client-side scripting injection without requiring any form of user authentication or prior login credentials.
The core technical flaw resides in the improper handling of input data within the file /plugin/sms5/ajax.sms_emoticon.php. This endpoint is designed to handle asynchronous JavaScript and XML requests related to SMS emoticons, but it fails to properly sanitize user-supplied input before processing. Specifically, the script includes common.php which utilizes the PHP @extract function on the $_GET superglobal array. The extract() function imports variables into the current symbol table from an array using array keys as variable names. Because this operation is performed without adequate validation or filtering of the incoming GET parameters, any data provided by a user in query string parameters is directly imported into local variables and subsequently echoed back within JSON output responses.
This architectural weakness leads to a reflected cross-site scripting vulnerability classified under CWE-79: Improper Neutralization of Input During Web Page Generation. An unauthenticated attacker can exploit this flaw by crafting malicious GET requests that include specially crafted payloads in the arr_ajax_msg parameter. When a victim, such as an administrator or regular user with access to the affected page, clicks on a link containing this malicious payload or is tricked into loading it via other means like phishing emails or compromised websites, their browser will execute the injected JavaScript code within the context of the vulnerable website's domain. This bypasses same-origin policy restrictions and allows the attacker to interact with the application as if they were the victim user.
The operational impact of this vulnerability is severe due to its unauthenticated nature. Attackers can perform a variety of malicious actions including stealing session cookies, hijacking administrative sessions, defacing web pages, redirecting users to phishing sites, or deploying further malware onto victims' systems through drive-by downloads. The ability to execute arbitrary JavaScript in the context of the Gnuboard application means that sensitive data such as user credentials, personal information stored within the board posts, and internal site configurations can be exfiltrated to remote servers controlled by the attacker. This compromises not only individual user accounts but potentially the entire integrity of the content management system if administrative privileges are compromised through session hijacking.
Exploitation evidence for this vulnerability was first observed in the wild on October 23, 2023, by the Shadowserver Foundation, indicating that active exploitation campaigns were already underway against vulnerable instances before public disclosure or patch availability became widespread. This real-world activity underscores the urgency of remediation and highlights the importance of monitoring threat intelligence feeds for indicators of compromise related to this specific exploit chain targeting Gnuboard installations globally.
To mitigate this vulnerability, organizations running affected versions of Gnuboard must immediately upgrade to version 5.3.3.4 or later, which includes patches addressing the input validation issues in the ajax.sms_emoticon.php endpoint. For systems that cannot be upgraded immediately due to compatibility constraints with custom plugins or legacy integrations, temporary mitigation strategies should include implementing a Web Application Firewall rule set designed to detect and block attempts to inject script tags or JavaScript event handlers into query parameters, particularly those targeting the arr_ajax_msg field. Additionally, developers should review all instances of the extract() function usage in conjunction with user-supplied input arrays like $_GET or $_POST, as this pattern is a common source of such vulnerabilities across many PHP applications and represents a CWE-913 weakness related to improper control of dynamically identified variables.
From an offensive security perspective, this vulnerability maps directly to MITRE ATT&CK technique T1059.007: Command and Scripting Interpreter::JavaScript, which describes the use of JavaScript for executing commands or scripts on target systems via web application vulnerabilities. Defenders should focus their monitoring efforts on detecting anomalous GET requests containing encoded script payloads directed at PHP endpoints that return JSON content with embedded user input. Regular vulnerability scanning and penetration testing focused on injection flaws in legacy CMS platforms are essential components of a robust security posture to prevent exploitation of such known weaknesses by automated botnets and targeted attackers alike.