GitHub Advisoryadvisory · Packagist

GHSA-cgr4-c233-h733 UnoPim Stored XSS : Cookie hijacking through Create User function

MEDIUM Published 2024-11-13 Modified 2024-11-13 Official page ↗
Aliases
CVE-2024-52305
Ecosystem
Packagist
Packages
unopim/unopim
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-616, CWE-692, CWE-79
Reviewed
2024-11-13

Affected packages

• Packagist unopim/unopim: < 0.1.5 → fixed in 0.1.5

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-52305 UnoPim is an open-source Product Information Management (PIM) system built on the Laravel framework. vulnerability

Weakness · CWE (3)

  • CWE-616 Incomplete Identification of Uploaded File Variables (PHP) weakness
  • CWE-692 Incomplete Denylist to Cross-Site Scripting weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References