CVE-2025-52036

6.1 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in NotesCMS allows attackers to inject malicious scripts into category service descriptions via the /index.php?route=categories page. When users view these manipulated categories, the scripts execute in their browsers, potentially stealing session cookies or performing unauthorized actions. All NotesCMS instances using vulnerable versions are affected.

💻 Affected Systems

Products:
  • NotesCMS
Versions: Versions up to commit 7d821a0f028b0778b245b99ab3d3bff1ac10e2d3 (2024-05-08)
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default configuration and requires no special settings to be exploitable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over the CMS, deface websites, or redirect users to malicious sites, potentially leading to complete system compromise.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies or credentials, enabling account takeover and unauthorized content manipulation.

🟢

If Mitigated

With proper input validation and output encoding, the risk is reduced to minimal, though the vulnerability still exists in the codebase.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires access to modify category titles, which typically requires some level of authentication, though the exact requirements depend on NotesCMS configuration.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Commit 95322c5121dbd7070f3bd54f2848079654a0a8ea (2025-03-31) or later

Vendor Advisory: https://github.com/PrivateAccount/NotesCMS/issues/1

Restart Required: No

Instructions:

1. Update NotesCMS to commit 95322c5121dbd7070f3bd54f2848079654a0a8ea or later. 2. If using git: git pull origin main. 3. Verify the fix by checking the commit hash.

🔧 Temporary Workarounds

Input Validation Filter

all

Implement server-side input validation to sanitize HTML tags in category title fields before storage.

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with XSS protection rules to block malicious payloads.
  • Disable or restrict access to the /index.php?route=categories endpoint for untrusted users.

🔍 How to Verify

Check if Vulnerable:

Check if your NotesCMS version is earlier than commit 95322c5121dbd7070f3bd54f2848079654a0a8ea by examining the git commit history or version metadata.

Check Version:

git log --oneline -1

Verify Fix Applied:

After updating, test by attempting to inject a simple XSS payload like <script>alert('test')</script> into a category title and verify it's properly sanitized when displayed.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /index.php?route=categories with HTML/script tags in parameters
  • Multiple failed login attempts followed by category modifications

Network Indicators:

  • HTTP requests containing script tags or JavaScript code in category title parameters

SIEM Query:

source="web_logs" AND (url="/index.php?route=categories" AND (param="title" CONTAINS "<script>" OR param="title" CONTAINS "javascript:"))

🔗 References

📤 Share & Export