Advisory

GHSA-cgr4-c233-h733

Also known as: CVE-2024-52305

Summary

UnoPim Stored XSS : Cookie hijacking through Create User function

Details

Summary
A vulnerability exists in the Create User process, allowing the creation of a new admin account with an option to upload a profile image. An attacker can upload a malicious SVG file containing an embedded script. When the profile image is accessed, the embedded script executes, leading to the potential theft of session cookies.

Details

  1. Login as admin
  2. Go to Create User
  3. Fill up everything in the registration form then upload SVG image as a profile picture
  4. In SVG image, add script tag to prepare for XSS attack
  5. Complete the Create User process
  6. Right click at the image to obtain image URL address
  7. XSS triggered

PoC
The below link is a private YouTube video for PoC.
https://youtu.be/5j8owD0--1A

Impact
The stored XSS can lead to session hijacking and privilege escalation, effectively bypassing any CSRF protections in place.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-11-13 18:37 UTC
Modified
2024-11-13 19:12 UTC

Affected packages and fixes

unopim/unopim

Packagist · All systems

Affected

  • introduced 0, fixed 0.1.5 (ecosystem)

Fixed versions

0.1.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences