Expand file tree
Cisco ISE version 2.4.0.357 contains an unauthenticated stored cross-site scripting (XSS) vulnerability, an authenticated Java deserialization vulnerability leading to remote code execution as an unprivileged user, and a privilege escalation flaw allowing that user to become root. An attacker could chain these to achieve remote code execution as root if an administrator visits a malicious page.
github.com
Published on github.com
History
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The root causes are: (1) lack of input validation and output encoding in the LiveLogSettingsServlet, (2) unsafe deserialization in the BlazeDS library, and (3) writable scripts that are executed with sudo privileges.
Impact
An attacker could achieve remote code execution as root if they can convince an administrator to visit the vulnerable page, but the second vulnerability requires authentication to the admin interface.
What the attacker needed
Victim visits malicious page; attacker has admin credentials for #2; shell as iseadminportal user for #3
How it was found
- Send a request to the LiveLogSettingsServlet with Action=write and malicious content in the Columns parameter to store the XSS payload.
- Trigger the stored XSS by sending a request with Action=read, causing the payload to execute in the browser.
- Send an AMF binary payload to /admin/messagebroker/amfsecure to trigger a JRMP call back to the attacker.
- Receive the JRMP connection with ysoserial's JRMP listener and use the ROME payload to execute code.
- Execute ncat to return a reverse shell as the iseadminportal user.
- Edit a writable script that is run with sudo to add a command that spawns a root shell, then run it with sudo.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes three security holes in Cisco ISE, a product that controls who can access a network. The first hole lets an attacker store malicious JavaScript on a page that administrators might visit; if an admin visits it, the script runs in their browser. The second hole lets someone who is already logged in as an administrator send a special request that makes the server run code of the attacker's choosing. The third hole lets that code, which runs as a limited user, become the all-powerful root user because some scripts that can be run as root are writable by that limited user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.