Reporter Project Zero Labs
`# Exploit Title: Ajenti - Stored (Persistent) Cross Site Scripting Vulnerability
# Date: 16/01/2014
# Exploit Author: projectzero labs
# Vendor Homepage: http://www.ajenti.org
# Vendor Informed: 14/01/2014
# Software Link: http://www.ajenti.org
# Version: 1.2.13
# Tested on: Kali Linux / Iceweasel v.22
About the software:
Ajenti is a server administration panel for Linux and FreeBSD.
projectzero labs identified a stored (persistent) cross site scripting vulnerability that affects many of
the forms in the ajenti web panel.
The vulnerability exists because some data inputs are not properly sanitized and this can lead to
malicious code injection that will be executed on the target's browser.
Report & Proof Of Concept:
A detailed report with screenshots as Proof Of Concept can be found in the software's bug tracker (Github):
Vendor has already informed and committed a quick patch:
As payloads we tested the classic alert popup and the url redirection to google:
<script>window.location = "http://google.com"</script>
For example a vulnerable form is the: System > Cron > Command field
For more information there are some screenshots available in the github bug report