Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-60374 — CVE-2025-60374: Stored Cross-Site Scripting (XSS) in Perfex CRM Chatbot | Kitploit
Tools/GitHubGitHub/ajansha/cve-2025-60374
Vulnerability AnalysisCode AnalysisWeb Application ExploitationWeb SecurityPenetration Testing
GitHubajansha/cve-2025-60374

CVE-2025-60374

CVE-2025-60374: Stored Cross-Site Scripting (XSS) in Perfex CRM Chatbot

View Repository
211 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

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 Severity CWE


📋 Overview

A stored cross-site scripting (XSS) vulnerability in the chatbot component of Perfex CRM, prior to version 3.3.1, allows attackers to inject arbitrary JavaScript code through chat messages. The malicious payload is stored in the application database and executed in the browsers of users viewing the chat conversation, enabling session token theft, unauthorized actions on behalf of victims, and other client-side attacks.

🎯 Affected Versions

  • Product: Perfex CRM
  • Vendor: Perfex CRM
  • Vulnerable Versions: < 3.3.1
  • Fixed Version: 3.3.1+

🔍 Vulnerability Details

AttributeValue
CVE IDCVE-2025-60374
TypeStored Cross-Site Scripting (XSS)
CWECWE-79
Attack VectorNetwork/Remote
AuthenticationRequired (Low Privilege)
User InteractionNone to Minimal
DiscovererAjansha 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

FactorImpactExplanation
Confidentiality🔴 HIGHSession tokens and sensitive data can be stolen
Integrity🔴 HIGHUnauthorized actions can be performed as the victim
Availability🟡 LOWLimited impact on system availability

🧪 Proof of Concept

PoC 1: Basic Image XSS

root@kitploit:~

PoC 2: Interactive Button XSS

root@kitploit:~
<button onclick=alert('Click executed!')>Click here</button>

PoC 3: Auto-playing Embedded Content

root@kitploit:~

PoC 4: Event-based XSS

root@kitploit:~
<meter value=2 min=0 max=10 onmouseover=alert('XSS triggered!')>
2 out of 10
</meter>

Real-World Attack Scenario

Cookie Theft Example:

root@kitploit:~

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

root@kitploit:~
// 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)
root@kitploit:~
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none';
  1. HttpOnly Cookies
root@kitploit:~
setcookie('session', $value, [
    'httponly' => true,
    'secure' => true,
    'samesite' => 'Strict'
]);
  1. Input Validation Library
root@kitploit:~
// Use DOMPurify, HTML Purifier, or similar
$clean_html = $purifier->purify($dirty_html);

📚 References

  • CWE-79: Cross-site Scripting (XSS)
  • OWASP XSS Prevention Cheat Sheet
  • CVE-2025-60374 Official Entry

👤 Credits

Discovered by: Ajansha Shankar , Ahamed Yaseen

Download Tool