Description
CyberPanel versions prior to 2.4.4 contain a stored cross-site scripting vulnerability in the AI Scanner dashboard where the POST /api/ai-scanner/callback endpoint lacks authentication and allows unauthenticated attackers to inject malicious JavaScript by overwriting the findings_json field of ScanHistory records. Attackers can inject JavaScript that executes in an administrator's authenticated session when they visit the AI Scanner dashboard, allowing them to issue same-origin requests to plant cron jobs and achieve remote code execution on the server.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version before 2.4.4
0a099b1b193946555fbdd387a28486b1521f9961 (git)
Credits
Djibril Mounkoro
References
itsrez.re/post/cyberpanel-rce
github.com/...ommit/0a099b1b193946555fbdd387a28486b1521f9961
www.vulncheck.com/...nel-stored-xss-via-ai-scanner-dashboard