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

CVE-2025-13178: Bdtask Saleserp XSS Vulnerability

CVE-2025-13178 is a cross-site scripting flaw in Bdtask Saleserp that enables attackers to inject malicious scripts through user profile fields. This article covers technical details, affected versions, 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-13178 Overview

CVE-2025-13178 is a cross-site scripting (XSS) vulnerability affecting Bdtask/CodeCanyon SalesERP through version 20250728. The flaw resides in the /edit_profile endpoint of the User Profile Handler component. Attackers can inject script payloads through the first_name and last_name parameters, which the application fails to sanitize before rendering [CWE-79]. Exploitation requires an authenticated low-privilege user and user interaction. The vendor was contacted prior to disclosure but did not respond. A public exploit has been published.

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in the browsers of users who view the manipulated profile fields, enabling session abuse and UI redress against SalesERP users.

Affected Products

  • Bdtask SalesERP (CodeCanyon distribution)
  • All versions up to and including 20250728
  • Component: User Profile Handler at /edit_profile

Discovery Timeline

  • 2025-11-14 - CVE-2025-13178 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-13178

Vulnerability Analysis

The vulnerability exists in the /edit_profile handler of Bdtask SalesERP. The handler accepts the first_name and last_name form parameters and stores or reflects them without proper output encoding. When the application later renders those fields in HTML contexts, embedded script content executes in the victim's browser session.

The weakness is classified under [CWE-79] Improper Neutralization of Input During Web Page Generation and [CWE-74] Improper Neutralization of Special Elements in Output. The impact is limited to integrity of client-side rendering; confidentiality and availability are not directly affected per the CVSS v4.0 vector.

Exploitation requires an authenticated session with permission to edit a profile and relies on a victim viewing the affected content. The EPSS probability sits at 0.234%, indicating low near-term exploitation likelihood, though a public proof-of-concept exists.

Root Cause

SalesERP does not perform HTML entity encoding or input sanitization on the first_name and last_name fields submitted to /edit_profile. User-controlled strings reach HTML sinks directly, allowing <script> and event-handler payloads to be interpreted as executable markup rather than text.

Attack Vector

An authenticated attacker submits a crafted profile update with JavaScript embedded in the first_name or last_name field. When any user, including administrators, loads a page that renders the stored name, the injected script runs in the browser context of SalesERP. Payloads can harvest session cookies, perform CSRF-style actions, or manipulate the rendered DOM. Delivery occurs over the network through the standard HTTP interface.

See the public proof-of-concept on GitHub and the VulDB entry #332468 for additional technical context.

Detection Methods for CVE-2025-13178

Indicators of Compromise

  • Profile records in SalesERP containing HTML tags, <script>, onerror=, onload=, or javascript: strings inside first_name or last_name columns.
  • POST requests to /edit_profile with URL-encoded angle brackets or event-handler attributes in the name parameters.
  • Unexpected outbound requests from user browsers to attacker-controlled domains originating from SalesERP pages that render user profiles.

Detection Strategies

  • Review web server access logs for POST requests to /edit_profile containing suspicious characters such as %3Cscript%3E, %22onerror, or javascript%3A.
  • Query the SalesERP user database directly for name fields matching regular expressions like <[a-zA-Z/], on\w+=, or javascript:.
  • Enable Content Security Policy (CSP) violation reporting to surface inline script execution attempts triggered by stored payloads.

Monitoring Recommendations

  • Alert on anomalous activity from administrator sessions after they visit user profile list pages, including sudden session token reuse or role changes.
  • Monitor for repeated profile updates from a single account, which may indicate payload tuning attempts.
  • Track browser error telemetry and CSP reports to identify payload execution on legitimate client workstations.

How to Mitigate CVE-2025-13178

Immediate Actions Required

  • Restrict access to the SalesERP /edit_profile endpoint using IP allow-lists or VPN gating until a vendor patch is available.
  • Audit the users table and sanitize any existing first_name or last_name entries that contain HTML or script syntax.
  • Deploy a web application firewall (WAF) rule that blocks requests to /edit_profile carrying angle brackets or JavaScript event handlers in name parameters.
  • Remind administrators to avoid viewing untrusted user profiles until mitigations are confirmed in place.

Patch Information

Bdtask has not published a security advisory or patch for CVE-2025-13178. The vendor did not respond to disclosure attempts referenced in the VulDB submission #684820. Operators should monitor the CodeCanyon product page for Bdtask SalesERP updates and apply vendor fixes once released.

Workarounds

  • Implement a reverse-proxy filter that HTML-encodes first_name and last_name parameters before they reach the application.
  • Enforce a strict Content Security Policy that disallows inline scripts (script-src 'self') to neutralize injected payloads.
  • Modify the SalesERP templates that render profile names to apply server-side HTML entity encoding on output if source code access is available.
  • Require administrators to use isolated browser profiles when accessing SalesERP management views that display user-supplied names.

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.