Skip to content

Stored XSS vulnerability in TicketsController priority field

High
1day2die published GHSA-2q43-grv2-jxwh Feb 11, 2025

Package

composer Ctrlpanel-gg/panel (Composer)

Affected versions

< 1.0

Patched versions

1.0

Description

Summary

A Cross-Site Scripting (XSS) vulnerability exists in the TicketsController and Moderation/TicketsController due to insufficient input validation on the priority field during ticket creation and unsafe rendering of this field in the moderator panel.

Details

The TicketsController does not validate or sanitize the priority field during ticket creation:

public function store(Request $request, GeneralSettings $generalSettings)
    {
       ...
       $validateData =  [
            'title' => 'required',
            'ticketcategory' => 'required',
            'priority' => 'required',
            'message' => 'required',
        ];
        ...
    }

In Moderation/TicketsController, this unsanitized data is rendered with raw HTML in the dataTable method:

...
->editColumn('priority', function (Ticket $tickets) {
    return __($tickets->priority);
});
->rawColumns(['category', 'title', 'user_id', 'status', 'priority', 'updated_at', 'actions'])
...

Impact

Attackers can execute malicious scripts in the moderator’s browser

PoC

image
image

Patches

393cbde

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
None
Scope
Unchanged
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:N/S:U/C:H/I:H/A:N

CVE ID

CVE-2025-25203

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