| タイトル | FusionPBX Commit 5.1.0 - 5.6.5 (tested 5.5.7; fixed in master commit 44248ff) Cross-Site Scripting (XSS) / CWE-79 |
|---|
| 説明 | SUMMARY
FusionPBX contains a reflected cross-site scripting (XSS) vulnerability in app/voicemails/voicemail_messages.php. The "back" GET parameter is URL-decoded and stored in the PHP session without validating that it is a relative, same-origin path. The value is later rendered as the href of the Back button. The button class only applies htmlspecialchars(), which does not block the javascript: URI scheme.
An attacker can send an authenticated FusionPBX user a link containing back=javascript:...; when the user opens the page and clicks Back, arbitrary JavaScript executes in the FusionPBX origin. The "id" parameter does not need to be a valid mailbox UUID; a random, malformed, or empty value still returns 200 OK and renders the poisoned Back button.
AFFECTED VERSIONS
FusionPBX 5.1.0 through 5.6.5 (latest release). Tested: 5.5.7. The vulnerable "back" handling was introduced in commit bd9a407ba5 (2023-06-09) and was present in master before fix commit 44248ff (2026-11-07). Branches older than 5.4 are EOL per the vendor.
PREREQUISITES
The attacker does not need an account. The victim must be authenticated and have voicemail_message_view, which is granted by default to superadmin, admin, user, and agent. The victim must click the Back button.
PROOF OF CONCEPT
1. Authenticate as a user with voicemail_message_view.
2. Request:
GET /app/voicemails/voicemail_messages.php?id=00000000-0000-0000-0000-000000000000&back=javascript:window.__xss=1 HTTP/1.1
Host: <fusionpbx-host>
Cookie: PHPSESSID=<authenticated-session>
3. The response contains:
<a href='javascript:window.__xss=1' target='_self'><button type='button' id='btn_back' ...><span class='button-label pad'>Back</span></button></a>
4. Click Back, or run in the browser console:
document.querySelector('a[href^="javascript:"]').click();
window.__xss; // -> 1
5. Variation: back=javascript:alert(document.domain) displays an alert with the FusionPBX origin.
IMPACT
Arbitrary JavaScript execution in the FusionPBX origin in the browser of an authenticated user. An attacker can read same-origin pages, extract CSRF tokens, perform state-changing requests as the victim, target administrators, and display phishing overlays. HttpOnly cookies prevent direct cookie theft but do not prevent same-origin actions. Default user and agent roles are valid victims.
REMEDIATION
The vendor fixed this in master commit 44248ff on 2026-11-07, with backports to 5.4/5.5 planned for 2026-11-08. The fix adds is_safe_relative_url() to accept only relative same-origin paths, rejects control characters, protocol-relative URLs, URI schemes, and backslashes, and hardens button::escape_href() to block non-http(s) schemes and protocol-relative URLs.
VENDOR NOTIFICATION AND CVE STATUS
Vendor contacted on 2026-11-07 via FusionPBX ticket 9810ca12-d986-11f1-b63d-0fb43149410b. Vendor acknowledged and published fix commit 44248ff; vendor permitted disclosure. No CVE assigned yet. Not submitted to another CNA.
REFERENCES
https://github.com/fusionpbx/fusionpbx/commit/44248ff7c898bb386734c01cf8fccea06660571e
https://github.com/fusionpbx/fusionpbx/blob/5.5.7/app/voicemails/voicemail_messages.php#L97
https://github.com/fusionpbx/fusionpbx/blob/5.5.7/app/voicemails/voicemail_messages.php#L323
https://github.com/fusionpbx/fusionpbx/blob/5.5.7/resources/classes/button.php#L158
https://cwe.mitre.org/data/definitions/79.html
CREDIT
Elang Mulya Perkasa |
|---|
| ソース | ⚠️ https://github.com/fusionpbx/fusionpbx/commit/44248ff7c898bb386734c01cf8fccea06660571e |
|---|
| ユーザー | elangmulya (UID 102775) |
|---|
| 送信 | 2026年11月07日 04:19 (23 日 ago) |
|---|
| モデレーション | 2026年11月29日 16:02 (22 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 445201 [FusionPBX 迄 5.6.5 Voicemails voicemail_messages.php button::escape_href back クロスサイトスクリプティング] |
|---|
| ポイント | 20 |
|---|