Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jZ3I0LWMyMzMtaDczM84ABBTs

UnoPim Stored XSS : Cookie hijacking through Create User function

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.

Permalink: https://github.com/advisories/GHSA-cgr4-c233-h733
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jZ3I0LWMyMzMtaDczM84ABBTs
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 7 days ago
Updated: 7 days ago


CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Identifiers: GHSA-cgr4-c233-h733, CVE-2024-52305
References: Repository: https://github.com/unopim/unopim
Blast Radius: 1.0

Affected Packages

packagist:unopim/unopim
Dependent packages: 0
Dependent repositories: 0
Downloads: 354 total
Affected Version Ranges: < 0.1.5
Fixed in: 0.1.5
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4
All unaffected versions: 0.1.5, 0.1.6