Skip to main content
Vulnerability Database/CVE-2025-40643

CVE-2025-40643: Energy CRM Stored XSS Vulnerability

CVE-2025-40643 is a stored cross-site scripting flaw in Energy CRM v2025 that enables attackers to inject malicious scripts and steal user session cookies. This article covers technical details, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-40643 Overview

CVE-2025-40643 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting Energy CRM v2025 by Status Tracker Ltd. The flaw resides in the /crm/create_job_submit.php endpoint, which fails to properly validate the JobCreatedBy parameter supplied via POST requests. An authenticated attacker can inject malicious JavaScript that is persistently stored by the application. When another authenticated user views the affected content, the payload executes in their browser context. Successful exploitation enables session cookie theft, account takeover of higher-privileged users, and additional client-side attacks against CRM operators.

Critical Impact

An authenticated remote attacker can inject persistent JavaScript into Energy CRM, enabling session hijacking and unauthorized actions against other authenticated users.

Affected Products

  • Energy CRM v2025 (Status Tracker Ltd)
  • CPE: cpe:2.3:a:energycrm:energy_crm:2025:*:*:*:*:*:*:*
  • Affected endpoint: /crm/create_job_submit.php (parameter JobCreatedBy)

Discovery Timeline

  • 2025-10-23 - CVE-2025-40643 published to NVD
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2025-40643

Vulnerability Analysis

The vulnerability is a stored XSS flaw in the Energy CRM job creation workflow. The create_job_submit.php script accepts user-supplied data for the JobCreatedBy field without applying input validation or output encoding. The value is persisted in the application's data store and later rendered in HTML contexts viewed by other users of the CRM.

Because the payload is stored server-side, any authenticated user who browses pages that render the tainted field triggers execution of attacker-controlled JavaScript. This expands the blast radius beyond the original attacker's session and allows targeting of administrators or privileged operators.

Exploitation requires an authenticated session but low privileges, since job creation is a core CRM function available to standard users. User interaction (viewing the record) is required for the payload to fire against a victim.

Root Cause

The root cause is missing input sanitization and output encoding on the JobCreatedBy POST parameter in /crm/create_job_submit.php. The application neither strips nor encodes HTML and JavaScript metacharacters before persisting the value and rendering it in response pages. This classifies the issue under [CWE-79]: Improper Neutralization of Input During Web Page Generation.

Attack Vector

An authenticated attacker submits a crafted POST request to /crm/create_job_submit.php containing a JavaScript payload within the JobCreatedBy field. The malicious value is stored in the CRM database. When a victim user — typically an administrator reviewing jobs — opens the affected view, the injected script runs under the victim's session. Common post-exploitation actions include exfiltrating document.cookie, pivoting via CSRF-like requests performed on behalf of the victim, or injecting a secondary payload for persistence.

No verified public exploit code is available. For additional technical context, see the INCIBE Advisory on Energy CRM Vulnerabilities.

Detection Methods for CVE-2025-40643

Indicators of Compromise

  • POST requests to /crm/create_job_submit.php where the JobCreatedBy parameter contains HTML or JavaScript syntax such as <script>, onerror=, onload=, or javascript:.
  • CRM job records whose JobCreatedBy field contains encoded payload fragments like %3Cscript%3E or references to external script URLs.
  • Unexpected outbound requests from authenticated CRM user browsers to attacker-controlled domains shortly after loading job listing pages.

Detection Strategies

  • Review web server and application logs for POST bodies to create_job_submit.php matching XSS signature patterns.
  • Query the CRM database for stored JobCreatedBy values containing <, >, script, or event handler substrings.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution violations originating from CRM pages.

Monitoring Recommendations

  • Instrument the web application firewall (WAF) with XSS rulesets covering reflected and stored injection patterns on CRM endpoints.
  • Alert on anomalous session cookie access or short-lived authenticated sessions reaching external hosts.
  • Correlate CRM user agent, session, and job creation activity to identify abnormal payload submissions.

How to Mitigate CVE-2025-40643

Immediate Actions Required

  • Contact Status Tracker Ltd for a vendor-supplied patch addressing input validation in create_job_submit.php.
  • Restrict access to the CRM to trusted networks via VPN or IP allow-listing until a fix is deployed.
  • Audit existing job records for stored payloads in the JobCreatedBy field and sanitize or remove malicious entries.
  • Rotate session cookies and credentials for any user who may have viewed tainted job records.

Patch Information

At the time of publication, no vendor advisory or patch URL is listed in the NVD entry. Refer to the INCIBE Advisory on Energy CRM Vulnerabilities for coordinated disclosure details and vendor contact guidance.

Workarounds

  • Deploy a WAF rule to block or sanitize POST requests to /crm/create_job_submit.php containing HTML/JavaScript metacharacters in the JobCreatedBy parameter.
  • Enforce a strict Content Security Policy that disallows inline scripts (script-src 'self') on CRM pages to limit payload execution.
  • Mark session cookies as HttpOnly and Secure to reduce the impact of cookie theft via document.cookie access.
  • Limit CRM user privileges and segregate administrative accounts from accounts that create or edit jobs.
bash
# Example ModSecurity rule to block XSS attempts targeting JobCreatedBy
SecRule REQUEST_URI "@streq /crm/create_job_submit.php" \
  "id:1004064,phase:2,deny,status:403,log,msg:'Potential XSS in JobCreatedBy',\
   chain"
  SecRule ARGS:JobCreatedBy "@rx (?i)(<script|onerror=|onload=|javascript:)" \
    "t:none,t:urlDecodeUni,t:htmlEntityDecode"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.