GHSA-MGVC-P9R5-VXC9
Stored Cross-Site Scripting via the Street Field in Role Member Assignment
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-MGVC-P9R5-VXC9 divulgada · CVSS 5.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
In Admidio 5.0.17, a regular authenticated user can store JavaScript in their own `STREET` profile field. When a user authorized to view a role's member-assignment page moves the pointer over that member's address icon, the value is inserted into the icon's `title` attribute without HTML attribute encoding and the browser executes the injected event handler. The attack requires the victim to open the affected member list and hover over the address icon.
Details
An ordinary user who can edit their own profile can save a crafted value in the `STREET` field. The profile editor checks profile-edit rights through `hasRightEditProfile()` (`modules/profile/profile_new.php:98-101`). In `modules/groups-roles/members_assignment_data.php:323-337`, the street value is appended to `$addressText`, then the resulting text is concatenated directly into the `title` attribute of an HTML `<i>` element. The value is returned in the DataTables JSON response; JSON encoding does not make the string safe for insertion into an HTML attribute. A quote in the stored street value can therefore terminate `title` and add an event-handler attribute.
The member-assignment page and its data endpoint require login and check that the viewer is allowed to assign members to the selected role (`modules/groups-roles/members_assignment.php:33-50`, `modules/groups-roles/members_assignment_data.php:53-80`). The `STREET` field is included when visible to the viewer (`modules/groups-roles/members_assignment_data.php:126-128, 323-337`). This means the issue is a stored XSS from a regular profile editor to a user who can view the affected role's member-assignment list and the street field. The victim must move the pointer over the address icon for the `onmouseover` payload to run.
Proof of concept
Tested on a local Admidio 5.0.17 deployment with a regular account (`USER1`) and a user authorized to view the target role's member-assignment page.
- Log in as `USER1` and open the profile edit page:
`http://localhost/modules/profile/profile_new.php?user_uuid=ba7b3f45-04d4-4ff1-9793-da9bc49f4280`
- Enter the following value in the Street field and save the profile:
```text
x" onmouseover="alert('stored-xss-confirmed')
```
The screenshot below shows this value entered in USER1's profile form.
<img width="3834" height="1842" alt="fig45" src="https://github.com/user-attachments/assets/df63b01f-5375-476e-8443-0fcb428ce63e" />
- While signed in as a user authorized to manage the target role, open:
`http://localhost/modules/groups-roles/members_assignment.php?role_uuid=08a03fff-d0ee-474c-b3cd-177c0dcdb3b2`
- Locate USER1's row and move the pointer over its address icon. The injected `onmouseover` handler runs and displays an alert. The screenshot below shows the trigger on the member-assignment page.
<img width="3840" height="1257" alt="fig46" src="https://github.com/user-attachments/assets/45413a1e-bc89-4bba-89bd-6172e244e7c8" />
The alert demonstrates JavaScript execution in the context of the Admidio origin. Restore USER1's original street value after testing.
Impact
A regular authenticated user can cause JavaScript to execute in the browser of a user who can access the affected role's member-assignment list and view the street field, provided that user hovers over the address icon. Depending on the victim's permissions and the site's protections, the script could access data available to that user or perform actions in their authenticated session. This report demonstrates script execution with a harmless alert; it does not demonstrate data theft or unauthorized state-changing actions.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Versiones afectadas
5.0.17Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistadmidio/admidio |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/Admidio/admidio/security/advisories/GHSA-mgvc-p9r5-vxc9Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
