Skip to content

Stored XSS in Ticket Reply Notifications Allows Session Hijacking

High
MrWeez published GHSA-cmrr-q3hw-3vqh May 8, 2026

Package

composer CtrlPanel-gg/panel (Composer)

Affected versions

<= 1.1.1

Patched versions

1.2.0

Description

Summary

A Stored Cross-Site Scripting (XSS) vulnerability exists in the ticket reply
notification system. Unsanitized reply content is embedded directly into
database notifications and later rendered unescaped in the recipient's
browser, allowing an attacker to execute arbitrary JavaScript in the
victim's session context.

The vulnerability is present in both notification directions:

  • App\Notifications\Ticket\Admin\AdminReplyNotification - triggered when
    a regular user replies to a ticket, targeting the admin's notification feed
  • App\Notifications\Ticket\User\ReplyNotification - triggered when an
    admin replies to a ticket, targeting the user's notification feed

Details

When a ticket reply is submitted, the message content ($newmessage) is
stored in the database notification payload without sanitization. The
notification view renders this content using Blade's unescaped {!! !!}
syntax, which outputs raw HTML directly into the page.

When the recipient opens their notifications panel, any HTML or JavaScript
embedded in the reply executes immediately in their browser context.

PoC

Attack path: User -> Admin

  1. Log in as a regular user.
  2. Open any support ticket.
  3. Post a reply with the following payload:
   <script>alert('XSS_POC')</script>
  1. Log in as an administrator.
  2. Click the notifications bell icon in the top navigation bar.
  3. Result: the alert executes immediately in the admin's browser.

PoC screenshot

Attack path: Admin -> User

The same technique applies in reverse - an admin can inject a payload
via a ticket reply that executes in the target user's notification feed.

Impact

A low-privileged attacker can execute arbitrary JavaScript in an
administrator's browser context, enabling:

  • Session hijacking - stealing the admin's session cookie to gain
    full administrative access
  • Credential harvesting - injecting fake login prompts or keyloggers
  • Privilege escalation - performing admin actions on behalf of the
    victim without their knowledge

The reverse path (admin -> user) allows a malicious or compromised admin
to target regular users in the same manner.

Remediation

Sanitize the message content before embedding it into the notification
payload. Since notification content is intended as a plain-text summary,
strip_tags() is sufficient to neutralize the injection.

Apply the fix to both affected notification classes:

  • app/Notifications/Ticket/Admin/AdminReplyNotification.php
  • app/Notifications/Ticket/User/ReplyNotification.php
- 'content' => "
-     <p>Ticket With ID : {$this->ticket->ticket_id} has had a new reply posted by <strong>{$this->user->name}</strong></p>
-     <br>
-     <p><strong>Message:</strong></p>
-     <p>{$this->newmessage}</p>
- ",
+ 'content' => "
+     <p>Ticket With ID : {$this->ticket->ticket_id} has had a new reply posted by <strong>{$this->user->name}</strong></p>
+     <br>
+     <p><strong>Message:</strong></p>
+     <p>" . strip_tags($this->newmessage) . "</p>
+ ",

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

CVE ID

CVE-2026-34241

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

Credits