Watch & Control Anyone — Shadow RDP Sessions
The article describes how an attacker with administrative credentials can use the RDP shadowing feature to view and control another user's active session without their consent. This allows remote access and control of a machine, potentially enabling a backdoor for future access.
Published on systemweakness.com
It’s possible to not only gain RDP access, with control and without approval, but also have it stay a secret. This will show you how…
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 RDP shadowing feature allows an administrator to connect to an existing session without the user's consent when the /noConsentPrompt option is used.
Impact
An attacker with administrative credentials could view and control another user's RDP session without consent, and could establish a backdoor for future access.
What the attacker needed
Administrative access to the target; target runs Windows 8.1/Server 2012 R2 or later; Remote Desktop Services service running
How it was found
- Obtain administrative credentials for the target machine.
- Use runas.exe with the /netonly option to start a PowerShell session with those credentials.
- Query the target for active sessions using quser.exe or qwinsta.exe to find the session ID.
- Connect to the session using mstsc with the /shadow, /control, and /noConsentPrompt options.
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.
Remote Desktop Protocol (RDP) lets you connect to another computer's screen and control it. Windows has a feature called shadowing that lets an administrator watch or join an existing session. This article shows how someone with admin rights can use that feature to secretly take over someone else's session, even if the normal RDP port is blocked, by using a different network port.
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.