Nagios XI 5.5.10: XSS to #
A reflected cross-site scripting flaw in Nagios XI allowed an attacker to run script in an authenticated user's browser, and combined with an authenticated remote code execution and a local privilege escalation, could yield a root shell. The attacker needed to trick a victim with job-creation privileges into visiting a malicious URL.
shielder.com
Published on shielder.com
A remote attacker could trick an authenticated victim (with “autodiscovery job” creation privileges) to visit a malicious URL and obtain a remote root shell via a reflected Cross-Site Scripting (XSS), an authenticated Remote Code Execution (RCE) and a Local Privilege Escalation (LPE).
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
Likely the application reflected user-controlled input into a page without proper output encoding, and the other two flaws allowed an authenticated user to run code and then escalate to root.
Impact
An attacker could obtain a remote root shell, but only by tricking an authenticated victim who has job-creation privileges into visiting a malicious URL.
What the attacker needed
Victim is authenticated; victim can create autodiscovery jobs; victim visits a malicious URL
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.
Cross-site scripting lets an attacker slip their own JavaScript into a page that another user views, so the script runs as that user. Here the script could then be used together with two other weaknesses to run commands on the server and finally gain the highest level of access, called root. The victim only had to open a crafted link while logged in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.