XRDP: Exploiting Unauthenticated X Windows Sessions
The post describes tools for finding and exploiting X11 sessions that are reachable without authentication. An attacker who can reach such a session could interact with the remote graphical desktop, including its keyboard and mouse input.
sensepost.com
Published on sensepost.com
In this blog post we are going to describe some tools we created to find and exploit unauthenticated X Windows sessions. We recently presented these at BSides Cape Town.
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 an X11 server exposed on the network without access control, so any client that can connect is treated as authorised.
Impact
An attacker who can reach an unauthenticated X11 session could interact with the remote desktop, including its keyboard and mouse input.
What the attacker needed
Network access to the X11 service
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.
X11 is the software that draws windows and handles the mouse and keyboard on many Linux and Unix machines. Normally only the person sitting at the machine, or someone who has logged in, should be able to control it. If a remote X11 session is left open without a password, anyone who can reach it on the network may be able to see and control that desktop.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.