CVE-2024-52305: 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.
Published Nov 13, 2024
Affected packages
unopim/unopim
- Ecosystem
- Composer (PHP)
- Affected
- < 0.1.5
- Fixed in
- 0.1.5
- Check
composer show unopim/unopim
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- Login as admin
- Go to Create User
- Fill up everything in the registration form then upload SVG image as a profile picture
- In SVG image, add script tag to prepare for XSS attack
- Complete the Create User process
- Right click at the image to obtain image URL address
- 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.
Credited to yamerooo123.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2025-55741
UnoPim has Broken Access Control
high8.1Aug 22, 2025CVE-2025-55745
UnoPim has CSV Injection on Quick Export feature
low2.5Aug 22, 2025CVE-2025-55742
UnoPim has Stored Cross-site Scripting vulnerability in user creation functionality
medium6.8Aug 21, 2025CVE-2025-55743
UnoPim vulnerable to remote code execution through Arbitrary File upload
high7.3Aug 21, 2025CVE-2025-55744
UnoPim vulnerable to CSRF on Product edit feature and creation of other types
medium6.9Aug 21, 2025CVE-2024-50637
UnoPim Cross-site Scripting vulnerability
medium6.1Nov 6, 2024
