Opmanager Csrf Xs Leak Chained For Information Disclosure
The ping tool API in OpManager accepted GET requests without CSRF checks, so an attacker could make an authenticated victim's browser send ping requests to internal hosts. By measuring how long the request took using a cross-window timing attack, the attacker could infer whether a given internal IP address exists.
Published on infosecwriteups.com
ManageEngine OpManager is a powerful network monitoring software that provides deep visibility into the performance of your routers, switches, firewalls, load balancers, wireless LAN controllers, servers, VMs, printers, and storage devices.
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 ping API endpoint used a GET request and lacked CSRF protection, allowing cross-site requests to be triggered from a victim's browser.
Impact
An attacker could determine whether a host or device with a particular IP address exists in the internal network of OpManager, even if only the OpManager server is exposed to the internet.
What the attacker needed
Victim is authenticated to OpManager; victim visits attacker's website; attacker can reach OpManager server
The fix
The ping endpoint should use POST for sensitive actions and implement proper CSRF protection, and authentication cookies should use SameSite=Strict.
How it was found
- Attacker crafts a website that opens a new window to the OpManager ping API URL with a chosen host and starts a timer.
- While the child window is loading, the attacker's page can access the child window's origin property without an exception.
- Once the child window finishes loading, accessing its origin throws an exception due to the same-origin policy.
- When the exception is caught, the timer is stopped and the response time is calculated.
- If the response time is less than about 7 seconds, the host is considered accessible; if longer, it is considered inaccessible.
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.
A website can make a logged-in user's browser send requests to another site without the user knowing, if that other site does not check for a special anti-forgery token. Here, the ping tool accepted such requests. The attacker cannot read the reply, but by timing how long the request takes, they can guess whether an internal computer answered.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.