Skip to content
Access control Write-up Intermediate

Windows Rdp Session Hijacking

An attacker who already has local administrator access on a Windows host can hijack another user's active RDP session without knowing that user's password. By running a service that invokes the session-connection tool with system privileges, the attacker's session is attached to the victim's session.

c0d3x27 Follow

Published on infosecwriteups.com

The Remote Desktop Protocol (RDP) has become an indispensable tool for system administrators, enabling them to manage Windows environments from a remote location. However, with its widespread use, RDP has also caught the attention of malicious actors seeking to exploit its vulnerabilities for nefarious purposes.

c0d3x27, on infosecwriteups.com

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 Windows allows a process running as SYSTEM to reconnect an existing session to another session via the session-connection utility, so local administrator rights are enough to seize a session without credentials.

Impact

An attacker with local administrator rights could take over another user's active remote desktop session without knowing that user's password, though the Mimikatz variant failed on one tested Windows Server build and asked for the target user's password.

What the attacker needed

Local administrator access on the host; an active RDP session to hijack

How it was found

  1. Obtain local administrator access on the target Windows system.
  2. List the available sessions, for example in Task Manager under Users or with the query user command.
  3. Create a service that runs the session-connection tool with system-level privileges against the chosen session ID.
  4. Start the service so the attacker's session is attached to the victim's session without needing the victim's password.

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 lets someone use a Windows computer over the network. If an attacker already has administrator rights on that machine, they can take over another person's open remote desktop session without ever learning that person's password, because Windows lets a privileged process reconnect a session to a different user.

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.

More by c0d3x27

View all

9 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.