{"id":"GHSA-cgr4-c233-h733","summary":"UnoPim Stored XSS : Cookie hijacking through Create User function","details":"### Summary\nA 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.\n\n### Details\n1. Login as admin\n2. Go to Create User\n3. Fill up everything in the registration form then upload SVG image as a profile picture\n4. In SVG image, add script tag to prepare for XSS attack\n5. Complete the Create User process\n6. Right click at the image to obtain image URL address\n7. XSS triggered\n### PoC\nThe below link is a private YouTube video for PoC. \nhttps://youtu.be/5j8owD0--1A\n\n### Impact\nThe stored XSS can lead to session hijacking and privilege escalation, effectively bypassing any CSRF protections in place.\n","aliases":["CVE-2024-52305"],"modified":"2024-11-13T19:12:23.684065Z","published":"2024-11-13T18:37:15Z","database_specific":{"github_reviewed_at":"2024-11-13T18:37:15Z","nvd_published_at":"2024-11-13T16:15:20Z","cwe_ids":["CWE-616","CWE-692","CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/unopim/unopim/security/advisories/GHSA-cgr4-c233-h733"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52305"},{"type":"WEB","url":"https://github.com/unopim/unopim/commit/9a0da7a0892c60f58df2351b5a9498dcb4cb8b7a"},{"type":"PACKAGE","url":"https://github.com/unopim/unopim"}],"affected":[{"package":{"name":"unopim/unopim","ecosystem":"Packagist","purl":"pkg:composer/unopim/unopim"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.5"}]}],"versions":["v0.1.0","v0.1.1","v0.1.2","v0.1.3","v0.1.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-cgr4-c233-h733/GHSA-cgr4-c233-h733.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"}]}