Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An XSS (Cross-Site Scripting) vulnerability occurs in the thread viewer when tickets are created via the mailbox integration. #112

Open
jekill opened this issue Oct 27, 2024 · 0 comments

Comments

@jekill
Copy link

jekill commented Oct 27, 2024

Description
An XSS (Cross-Site Scripting) vulnerability occurs in the thread viewer when tickets are created via the mailbox integration. If a ticket contains malicious JavaScript code, it executes upon opening the ticket in UVdesk.

How to reproduce

  1. Send an email to the mailbox connected with UVdesk containing the following text in the email body:
    <script>alert('Knock knock')</script>
  2. Wait for the ticket to be automatically created in UVdesk from the email.
  3. Open the newly created ticket in the thread viewer.
  4. Observe that the JavaScript code executes, displaying an alert message.

Possible Solution
Implement proper input sanitization and encoding for ticket content generated from emails to prevent execution of embedded scripts.
https://github.com/uvdesk/mailbox-component/blob/v1.1.3/Services/MailboxService.php#L421

Additional context
This vulnerability could allow attackers to execute arbitrary JavaScript code in the context of the user's browser session, potentially leading to session hijacking or other malicious activities. Screenshots or logs can be provided upon request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant