FacturaScripts vulnerable to Reflected Cross-Site Scripting (XSS) via Cookie Manipulation
Low severity
GitHub Reviewed
Published
May 7, 2026
in
NeoRazorX/facturascripts
•
Updated May 7, 2026
Description
Published to the GitHub Advisory Database
May 7, 2026
Reviewed
May 7, 2026
Last updated
May 7, 2026
Summary
A Reflected Cross-Site Scripting (XSS) vulnerability exists in the fsNick cookie parameter. The application reflects the cookie's value directly into the HTML without sanitization.
Details
The fsNick cookie is rendered into the DOM without encoding. While the server does reject the modified session and forces a logout, the HTML containing the payload reaches the browser first. This lets the script execute immediately upon load, effectively beating the redirect.
PoC
Modify the value of "fsNick" with the following JavaScript:
<script>alert(window.origin)</script>Send the modified request.
Impact
The payload executes before the session ends, which could potentially allow for a single unauthorized action before the logout.
References