Cloudanix VulnDB

CVE-2023-25440

Medium · 5.4

CVSS

5.4

EPSS

2.5%

Published

May 23, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in contact management lets attackers plant hidden code that runs automatically when someone else looks at the saved names, potentially exposing private information.

Exploit Available
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Data Tampering
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Stored Cross-Site Scripting vulnerability that permits injection and persistent storage of arbitrary scripts in the first and second name fields via the add contact function, causing execution in the context of other users' sessions.

Why it matters to the business

Attackers can hijack user sessions, steal sensitive data, or perform unauthorized actions within the application, leading to compliance violations, loss of user trust, and potential operational disruption; low exploit probability but available public exploits increase urgency for patching within standard maintenance windows.

How an attack unfolds

An attacker with low-privileged access submits a crafted contact entry containing malicious JavaScript in the name fields; the payload is stored server-side and later rendered unsanitized to other users, executing the script in their browsers to exfiltrate data or perform actions on their behalf.

How to fix it

Upgrade affected installations to the following fixed versions: trafficserver (Debian:11) to 8.1.9+ds-1~deb11u1 or trafficserver (Debian:12) to 9.2.3+ds-1+deb12u1; apply vendor patches, sanitize all name field inputs on storage and display, and enable content security policy headers as a defense-in-depth measure.

How to confirm the fix worked

Confirm the upgrade by checking package versions against the listed fixed releases; retest the add contact workflow with benign script payloads to verify input sanitization and output encoding; review application logs and database contents for residual unsanitized name entries.

Typical attack path

  1. Obtain low-privileged access to the application
  2. Invoke the add contact function and embed executable script payloads in the first or second name fields
  3. Save the contact so the payload persists in storage
  4. Induce or wait for a higher-privileged user to view the contact record
  5. Script executes within the victim's authenticated session

How to detect it

Search application and web server logs for unusual name field submissions containing script tags or event handlers; inspect database records for stored payloads in contact name columns; review user session activity for unexpected script execution or data exfiltration attempts.

  • <script
  • onerror=
  • onload=
  • javascript:
  • eval(

What your security team should do

  • Prioritize patching within 30 days given public exploit availability
  • Audit all existing contacts for malicious payloads in name fields
  • Implement input validation and output encoding on all user-supplied name data
  • Deploy web application firewall rules to block common XSS patterns
  • Monitor for anomalous script execution or unexpected outbound requests from user sessions

The record

Stored Cross Site Scripting (XSS) vulnerability in the add contact function CiviCRM 5.59.alpha1, allows attackers to execute arbitrary code in first/second name field.

Affected packages

Ecosystem Package Introduced Fixed
Bitnami civicrm 5.59-alpha1.0 No fix
Debian:11 civicrm 0 No fix
Ubuntu:16.04:LTS civicrm 0 No fix
Ubuntu:18.04:LTS civicrm 0 No fix
Ubuntu:20.04:LTS civicrm 0 No fix
Ubuntu:22.04:LTS civicrm 0 No fix
Ubuntu:Pro:16.04:LTS civicrm 0 No fix
Ubuntu:Pro:18.04:LTS civicrm 0 No fix
Ubuntu:Pro:20.04:LTS civicrm 0 No fix

Related vulnerabilities