OpenSTAManager has HTML Injection in modules/utenti/edit.php
Impact
An HTML Injection vulnerability exists in the user group creation functionality that allows an attacker to inject arbitrary HTML content into the application interface. The vulnerability occurs when user-supplied input in the group name field is not properly sanitized before being rendered, allowing an attacker to inject HTML elements such as anchor tags. This may enable phishing attacks or unintended redirection when other users interact with the injected content.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.11-betaEcosystem versions | 2.11-beta |
Version evidence: OSV · GHSA-crx4-7mmq-j74j
View original version evidence (92 explicit versions)
Original source description
Summary
An HTML Injection vulnerability exists in the user group creation functionality that allows an attacker to inject arbitrary HTML content into the application interface. The vulnerability occurs when user-supplied input in the group name field is not properly sanitized before being rendered, allowing an attacker to inject HTML elements such as anchor tags. This may enable phishing attacks or unintended redirection when other users interact with the injected content.
Details
The vulnerable code responsible for rendering this content is located in: modules/utenti/edit.php
<i class="fa fa-users mr-2"></i>'.tr('Utenti del gruppo: _GROUP_', [
'_GROUP_' => '<span class="text-primary">'.$group->getTranslation('title').'</span>
PoC
A malicious user can inject HTML content into the Name field when creating a new user group.
<img width="1233" height="293" alt="image" src="https://github.com/user-attachments/assets/cc09d0d5-ec77-4e94-94f7-35a277c49130" />
After selecting the group, the application renders the injected HTML without proper sanitization. As a result, the anchor tag is displayed as an active link in the interface.
<img width="583" height="356" alt="image" src="https://github.com/user-attachments/assets/ac9006fb-2a5c-4a84-946e-9c54b7ac5500" />
The injected anchor tag is also visible when the group is assigned to a user.
<img width="1262" height="503" alt="image" src="https://github.com/user-attachments/assets/68b2d45f-d0b8-4304-90fa-cb56f55ce3aa" />
When a user clicks the injected link, the browser redirects them to the attacker-controlled URL.
Impact
This vulnerability is an HTML Injection caused by improper sanitization of user-supplied input before rendering it in the application interface. Any user who views the interface where the injected content is rendered may be impacted.
References
- Security advisory github.com/devcode-it/openstamanager/security/advisories/GHSA-crx4-7mmq-j74j
- Patch github.com/devcode-it/openstamanager/commit/0b88ad1963871abfa5e134004ca0c74c496d8d2f
- Patch github.com/devcode-it/openstamanager/commit/7c9eafe9ffefcfd61357c81165157090e790c213
- Source reference github.com/devcode-it/openstamanager
- Release notes github.com/devcode-it/openstamanager/releases/tag/v2.11-beta