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-2610 Overview
CVE-2025-2610 is an authenticated stored cross-site scripting (XSS) vulnerability in MagnusSolution MagnusBilling. The flaw resides in the Alarm Module and is tied to the protected/components/MagnusLog.php component. Affected versions include MagnusBilling through 7.3.0. An authenticated attacker can inject malicious script content that is stored by the application and later rendered in another user's browser. The issue is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Successful exploitation allows an authenticated attacker to execute arbitrary JavaScript in the context of other MagnusBilling users, including administrators, enabling session abuse and unauthorized actions.
Affected Products
- MagnusSolution MagnusBilling through version 7.3.0
- protected/components/MagnusLog.php logging component
- Alarm Module in MagnusBilling
Discovery Timeline
- 2025-03-21 - CVE-2025-2610 published to NVD
- 2026-08-28 - Last updated in NVD database
Technical Details for CVE-2025-2610
Vulnerability Analysis
MagnusBilling is a VoIP billing platform used by telecom operators. The Alarm Module records user-generated events into a log table through the MagnusLog helper class. Before the patch, the description field passed into LogUsers was persisted without HTML encoding. Any script payload supplied by an authenticated user was stored verbatim in the database and later rendered to administrators viewing log entries. Because the payload executes in the context of a privileged user's session, the attacker can perform actions on behalf of that user, modify billing data, or pivot to additional functionality exposed by the admin console.
Root Cause
The root cause is missing output neutralization in protected/components/MagnusLog.php. The description parameter was assigned directly to the model attribute without passing it through CHtml::encode. A secondary gap existed in protected/components/SqlInject.php, where the input filter did not account for common XSS tokens such as alert, src=, <img, and console, allowing script payloads to bypass the request-level filter.
Attack Vector
Exploitation requires an authenticated session and user interaction when the stored payload is rendered. An attacker triggers an action that writes to the audit log with an attacker-controlled description value containing JavaScript. When a privileged user later views the Alarm Module logs, the payload executes in their browser under the application's origin.
// Patch in protected/components/MagnusLog.php
$id_user = isset(Yii::app()->session['id_user']) ? Yii::app()->session['id_user'] : null;
$modelLogUsers = new LogUsers();
$modelLogUsers->id_user = $id_user;
-$modelLogUsers->description = $description;
+$modelLogUsers->description = CHtml::encode($description);
$modelLogUsers->id_log_actions = $action;
$modelLogUsers->ip = $_SERVER['REMOTE_ADDR'];
Source: GitHub Commit for MagnusBilling. The fix wraps the description value with CHtml::encode so that HTML metacharacters are neutralized before persistence.
// Patch in protected/components/SqlInject.php - expanded blocklist
'pg_query',
'sqlite_query',
'prepare',
+'alert',
+'src=',
+'<img',
+'console'
Source: GitHub Commit for MagnusBilling. The vendor also removed the authentication controller bypass in the input filter.
Detection Methods for CVE-2025-2610
Indicators of Compromise
- Log entries in the LogUsers table containing unencoded <script>, <img, onerror=, or javascript: tokens in the description column.
- Unexpected administrator account changes, new users, or billing configuration edits following a log view event.
- Browser console errors or outbound requests to unfamiliar domains when administrators open the Alarm Module.
Detection Strategies
- Audit historical LogUsers records for HTML or script payloads stored before the patch was applied.
- Enable Content Security Policy (CSP) reporting and alert on violations originating from MagnusBilling admin pages.
- Monitor the web server access log for POST requests from low-privilege accounts that produce log entries containing suspicious characters.
Monitoring Recommendations
- Correlate authenticated session activity with subsequent administrator-driven privilege changes on the same host.
- Track outbound HTTP requests from browsers accessing /mbilling paths to catch script-driven data exfiltration.
- Review the Chocapikk Blog Post and VulnCheck Advisory on MagnusBilling for payload patterns to add to WAF signatures.
How to Mitigate CVE-2025-2610
Immediate Actions Required
- Upgrade MagnusBilling to a version that includes commit f0f083c7 or later.
- Rotate administrator credentials and invalidate active sessions after patching to evict any attacker-held tokens.
- Review LogUsers records and purge any entries containing script payloads before administrators access the Alarm Module.
Patch Information
The vendor fix is published in commit f0f083c76157e31149ae58342342fb1bf1629e22. It applies CHtml::encode to the description field in protected/components/MagnusLog.php and extends the SqlInject.php filter with additional XSS tokens. Operators running MagnusBilling 7.3.0 or earlier should apply the patch directly or update to the next tagged release.
Workarounds
- Restrict access to the MagnusBilling administration interface to trusted IP ranges using a reverse proxy or firewall.
- Deploy a web application firewall rule that blocks HTML tags and JavaScript handlers in request parameters consumed by log-writing endpoints.
- Require multi-factor authentication for all accounts able to generate log events to raise the cost of abuse.
# Example nginx rule to block common XSS tokens on MagnusBilling endpoints
location /mbilling/ {
if ($args ~* "(<script|onerror=|javascript:|<img|alert\()") {
return 403;
}
proxy_pass http://magnusbilling_backend;
}
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

