`# 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.
Vulnerability Details:
======================
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):
https://github.com/Eugeny/ajenti/issues/233
Vendor has already informed and committed a quick patch:
https://github.com/Eugeny/ajenti/commit/3270fd1d78391bb847b4c9ce37cf921f485b1310
Payload:
========
As payloads we tested the classic alert popup and the url redirection to google:
<script>alert("XSS");</script>
<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
Severity:
=========
Medium
Credits:
========
projectzero labs
[email protected]
http://www.projectzero.gr
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation