| Title | Grocy 4.5.0 Cross Site Scripting |
|---|
| Description | Stored Cross-Site Scripting (XSS) in endpoint equipment field Notes
Summary
A Stored Cross-Site Scripting (XSS) vulnerability was identified in the equipment endpoint of the Grocy application. This vulnerability allows attackers to inject malicious scripts into the Notes field. The injected scripts are stored on the server and executed automatically whenever the affected page is accessed by users, posing a significant security risk.
Details
Vulnerable Endpoint: equipment
Parameter: Notes
The application fails to properly validate and sanitize user inputs in the Notes field. This lack of validation allows attackers to inject malicious scripts, which are then stored on the server. Whenever the affected page is accessed, the malicious payload is executed in the victim's browser, potentially compromising the user's data and system.
PoC
Step by Step:
Access vulnerable endpoint and click on "Add" button to setup a new entry. Type anything on first field and insert the payload in second field ("Notes"). Click on "Save" and the payload will be activated automatically.
Payload:
<script>alert('XSS')</script>
image 1: https://hackmd.io/_uploads/rJ04huncel.png
image 2: https://hackmd.io/_uploads/H1huhOn5ex.png
image 3: https://hackmd.io/_uploads/BJzTnOnqeg.png
Impact
Stealing session cookies: Attackers can use stolen session cookies to hijack a user's session and perform actions on their behalf;
Downloading malware: Attackers can trick users into downloading and installing malware on their computers;
Hijacking browsers: Attackers can hijack a user's browser or deliver browser-based exploits;
Stealing credentials: Attackers can steal a user's credentials;
Obtaining sensitive information: Attackers can obtain sensitive information stored in a user's account or in their browser;
Defacing websites: Attackers can deface a website by altering its content.
Finder
Discovered with???? by Karina Gante.
|
|---|
| Source | ⚠️ https://hackmd.io/@noka/ryeWntnqex |
|---|
| User | karinagante (UID 88113) |
|---|
| Submission | 09/08/2025 19:12 (1 Year ago) |
|---|
| Moderation | 09/18/2025 07:17 (10 days later) |
|---|
| Status | Duplicate |
|---|
| VulDB entry | 245609 [Grocy 4.0.3 Equipment Description /equipment/ cross site scripting] |
|---|
| Points | 0 |
|---|