CVE-2021-42967

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to upload malicious JSP files without restrictions in novel-plus's file controller. It affects all versions of novel-plus, enabling remote code execution on affected servers.

💻 Affected Systems

Products:
  • novel-plus
Versions: All versions
Operating Systems: Any OS running Java
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the default installation with file upload functionality enabled

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise leading to data theft, ransomware deployment, or use as attack platform

🟠

Likely Case

Webshell installation allowing persistent backdoor access and further exploitation

🟢

If Mitigated

File uploads blocked or properly validated, preventing malicious file execution

🌐 Internet-Facing: HIGH - Directly exploitable via web interface without authentication
🏢 Internal Only: MEDIUM - Still exploitable by internal users or compromised accounts

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Simple HTTP POST request with malicious JSP file payload

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: None

Vendor Advisory: https://github.com/201206030/novel-plus/issues/62

Restart Required: Yes

Instructions:

1. Review GitHub issue #62 for community fixes
2. Implement file upload validation
3. Restart application after changes

🔧 Temporary Workarounds

Web Application Firewall Rule

all

Block JSP file uploads at the WAF level

WAF-specific configuration to block .jsp file uploads

File Extension Restriction

all

Configure server to reject JSP file uploads

Modify FileController.java to validate file extensions

🧯 If You Can't Patch

  • Disable file upload functionality completely
  • Implement strict file type validation and store uploaded files outside webroot

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a JSP file via /novel-admin file upload endpoint

Check Version:

Check novel-plus version in application properties or build files

Verify Fix Applied:

Test that JSP file uploads are rejected or properly validated

📡 Detection & Monitoring

Log Indicators:

  • JSP file uploads in access logs
  • Unusual file upload patterns

Network Indicators:

  • HTTP POST requests with .jsp files to upload endpoints

SIEM Query:

source="web_logs" AND (uri_path="/file/upload" OR uri_path="/novel-admin") AND file_extension=".jsp"

🔗 References

📤 Share & Export