Skip to content

XSS in reason field. #29

Closed
Closed
@Sama34

Description

@Sama34

Describe the bug
Apparently custom reasons are not sanitized on output.

To Reproduce
Steps to reproduce the behavior:

  1. Have a mod account level or higher.
  2. Go to Manage Awards in ModCP.
  3. Give an award to a user and input payload for reason.
<script>alert('XSS')</script>
  1. Payload executes when viewing award on awards.php and user profiles.

Expected behavior
Such code shouldn't be executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions