Skip to content

XSS on dojo pages

High
zardus published GHSA-8m79-rmhw-rg84 Jan 30, 2025

Package

pwn.college DOJO

Affected versions

<= a9abd7220b647206b467822912be0258445b13d6

Patched versions

None

Description

Summary

Missing access control on rendering custom (unprivileged) dojo pages causes ability for users to create stored XSS.

Details

All dojo users can create pages which allow serving arbitrary files. This can allow html files to be served and thus stored XSS can be created on the dojo's origin.

PoC

  1. Create a git repository
  2. Add an html file with any arbitrary JS scripts
  3. Add a dojo.yml file with an entry in pages pointing to that html file
  4. Commit and push the repository
  5. Create or update a dojo with that repository
  6. Navigate to the new custom page
  7. XSS occurs

Impact

This is an XSS vulnerability where website users may perform dangerous actions without their knowledge.

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
Low
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:L/A:N

CVE ID

CVE-2025-24885

Credits